Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/site/hugo/content/maven-plugin/excludes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In those cases audit can be configured to *exclude* vulnerabilities from matchin

## Exclude Specific Vulnerabilities

Specific vulnerabilities can be excluded by *vulnerability-id*.
Specific vulnerabilities can be excluded by *vulnerability-id*. You can also use the [CVE Number](https://cve.mitre.org/cve/identifiers/index.html) here.

For example to exclude [39d74cc8-457a-4e57-89ef-a258420138c5](https://ossindex.sonatype.org/vuln/39d74cc8-457a-4e57-89ef-a258420138c5):

Expand All @@ -38,6 +38,20 @@ For example to exclude [39d74cc8-457a-4e57-89ef-a258420138c5](https://ossindex.s
</plugin>
{{< /highlight >}}

Here is what this looks like when using a CVE number.

{{< highlight "xml" >}}
<plugin>
<groupId>org.sonatype.ossindex.maven</groupId>
<artifactId>ossindex-maven-plugin</artifactId>
<configuration>
<excludeVulnerabilityIds>
<exclude>CVE-2025-1234567</exclude>
</excludeVulnerabilityIds>
</configuration>
</plugin>
{{< /highlight >}}

This exclusion can also be configured via CLI property as a comma-separated list of ids:

{{< command >}}
Expand Down Expand Up @@ -72,4 +86,4 @@ This exclusion can also be configured via CLI property as a comma-separated list
mvn ossindex:audit -Dossindex.excludeCoordinates=commons-fileupload:commons-fileupload:1.3
{{< /command >}}

**NOTE:** Only exact coordinate matches are excluded.
**NOTE:** Only exact coordinate matches are excluded.