Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add suppression for rewrite-jhipster false positive CVE #3

Merged
merged 3 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import org.owasp.dependencycheck.reporting.ReportGenerator

plugins {
id("org.owasp.dependencycheck")
}

configure<org.owasp.dependencycheck.gradle.extension.DependencyCheckExtension> {
skipConfigurations = listOf("integTestImplementationDependenciesMetadata")
analyzers.nodeAuditEnabled = false
analyzers.nodeEnabled = false
analyzers.assemblyEnabled = false
failBuildOnCVSS = 9.0F
suppressionFile = "suppressions.xml"
format = ReportGenerator.Format.valueOf(project.properties["dependencyCheckFormat"] as String? ?: "HTML")
}
17 changes: 17 additions & 0 deletions suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress>
<notes><![CDATA[
file: rewrite-jhipster-1.6.0.jar
vuln id: cpe:2.3:a:jhipster:jhipster:1.6.0:*:*:*:*:*:*:*
package: pkg:maven/org.openrewrite.recipe/rewrite-jhipster@1.6.0
sev: CRITICAL
CVE-2019-16303
False positive. CVE refers to jhipster before 6.3.0, but rewrite-jhipster is not jhipster itself. CPE is too broad, apparently
matching any dependency that includes jhipster in the name.
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.openrewrite\.recipe/rewrite\-jhipster@.*$</packageUrl>
<cpe>cpe:/a:jhipster:jhipster</cpe>
<cve>CVE-2019-16303</cve>
</suppress>
</suppressions>