Hello,
if I update the Dependency-Check-Maven-Plugin from 5.3.2 to 6.0.1 without further changes in my configuration, the build is interrupted (as configured) while new vulnerabilities are found. That's okay, but in contrast to 5.3.2, where 2 vulnerabilities were found, version 6.0.1 now finds 2290 ... And that surprises me a little.
After looking around I set up a little demo project with just a pom.xml, a package.json and a owasp-exclude.xml. And it looks as the plugin now will find any vulnerabilty for the devDependencies in package.json
So the questions for is now:
Is there something I can do ?
Can I suppress the scanning of devDependencies (setting nodeAuditSkipDevDependencies to false true does not work)?
Runs executed on 18th of September 2020, at around 08:45CEST
mvn clean verify produces 0 vulnerabilitiesmvn clean verify -Ddependency-check-maven.version=6.0.1 produces 2289 vulnerablities in 82 dependenciesmvn clean verify -Ddependency-check-maven.version=6.0.1 will produce again 0 vulnerabilities The pom.xml (with plugin version 5.3.2), package.json and owasp-exclude.xml are attached as 03_demo.zip
03_demo.zip
The created reports of the three runs are attached as reports.zip
reports.zip
We have the same "problem" over here in our projects using the CLI. Will follow this to see if it's a bug or if there is a workaround
See #2482. Also - there are a number of FP that need to be cleaned up. I'll try to find some time soon to cull the list of reported FP.
In addition - I believe I just fixed the issue with skipping dev dependencies via nodeAuditSkipDevDependencies. The patch will be in 6.0.2.
it seems not really working: also with version 6.0.2 and <nodeAuditSkipDevDependencies>true</nodeAuditSkipDevDependencies> I still get more than 2200 vulnerabities for the attached demo project .... (exactly: 2268 vulnerabilities in 47 dependencies, which is only a little bit fewer than the original 2289 vulnerablities in 82 dependencies .... )
Until I get time to cleanup the Node Analyzer - I would highly recommend just turning it off <nodeAnalyzerEnabled>false</nodeAnalyzerEnabled>. I have plans to enhance the node analysis - but it won't make it into the next release.