missing existing vulnerabilities in the dependency check report
See original GitHub issueProject 1:
When scanning a directory <PROJECT_1> which includes a package.json with entry “log4js”: “^2.3.12” the scan finds the vulnerability of timespan and reports this: timespan:2.3.0` File Path: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/package.json?timespan Referenced In Project/Scope:null: transitive Evidence Identifiers npm: timespan:2.3.0 Confidence:Highest
Everything OK (log4js uses timespan)
Project 2:
When scanning a directory <PROJECT_2> which includes a package.json without entry “log4js”, but with a directory node_modules/timespan the scan doesn’t find the vulnerability of timespan. That’s strange for me. In the scan log, I see that the node module timespan is found by the scan,
2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/.npmignore 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/CHANGELOG.md 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/LICENSE 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/README.md 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/browser/TimeSpan-1.2.js 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/browser/TimeSpan-1.2.min.js 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/docs/docco.css 2018-07-19 15:57:49,238 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/docs/time-span.html 2018-07-19 15:57:49,239 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/lib/time-span.js 2018-07-19 15:57:49,239 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json 2018-07-19 15:57:49,239 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/test/date-parser-test.js 2018-07-19 15:57:49,239 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/test/helpers.js 2018-07-19 15:57:49,239 org.owasp.dependencycheck.App:356 DEBUG - Found file /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/test/time-span-test.js
then there is an entry “Skipping analysis”
2018-07-19 15:57:49,952 org.owasp.dependencycheck.analyzer.AbstractNpmAnalyzer:97 DEBUG - Skipping analysis of node module: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json
and more log entries regarding to timespan:
2018-07-19 15:57:51,696 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (File Name Analyzer) . . . 2018-07-19 15:57:54,301 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Dependency Merging Analyzer) . . . 2018-07-19 15:57:54,333 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Dependency Merging Analyzer) . . . 2018-07-19 15:57:54,378 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Version Filter Analyzer) . . . 2018-07-19 15:57:54,408 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Version Filter Analyzer) . . . 2018-07-19 15:57:54,631 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Hint Analyzer) . . . 2018-07-19 15:57:54,667 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Hint Analyzer) . . . 2018-07-19 15:57:57,050 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (CPE Analyzer) . . . 2018-07-19 15:57:57,096 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (CPE Analyzer) . . . 2018-07-19 15:57:57,152 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (False Positive Analyzer) . . . 2018-07-19 15:57:57,173 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (False Positive Analyzer) . . . 2018-07-19 15:57:57,209 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (NVD CVE Analyzer) . . . 2018-07-19 15:57:57,231 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (NVD CVE Analyzer) . . . and another entry “Skipping analysis”
2018-07-19 15:57:57,342 org.owasp.dependencycheck.analyzer.AbstractNpmAnalyzer:97 DEBUG - Skipping analysis of node module: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json . . . 2018-07-19 15:57:57,342 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Node Security Platform Analyzer) . . . and a third entry “Skipping analysis”
2018-07-19 15:57:57,342 org.owasp.dependencycheck.analyzer.AbstractNpmAnalyzer:97 DEBUG - Skipping analysis of node module: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json . . . more “Skipping analysis”
2018-07-19 15:57:57,420 org.owasp.dependencycheck.analyzer.AbstractNpmAnalyzer:97 DEBUG - Skipping analysis of node module: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json . . . 2018-07-19 15:57:57,420 org.owasp.dependencycheck.AnalysisTask:86 DEBUG - Begin Analysis of ‘/home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json’ (Node Security Platform Analyzer) . . . “Skipping analysis” again
2018-07-19 15:57:57,420 org.owasp.dependencycheck.analyzer.AbstractNpmAnalyzer:97 DEBUG - Skipping analysis of node module: /home/jenkins-master/workspace/build-pipeline-ocscli.scan/node_modules/timespan/package.json . . .
And as said, in the dependency check report there is no vulnerability for timespan.
This also happens to other vulnerable node modules, like hoek, tunnel-agent, … They are not reported.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
@kilodalton For npm audit you need npm@6. We have npm 5.6 on our prod system @jeremylong timespan is actually used. We have an own node module log4js-client (not an official node module) which uses the official node module log4js. And the official node module log4js is using timespan.
The npm tree of our service:
This issue is believed to be resolved with 5.2.3. Please open a new issue if the problem persists.