DependencyCheck: NIST NVD URL no longer works
Logs:
$ dependency-check --updateonly
[INFO] Checking for updates
[INFO] starting getUpdatesNeeded() ...
[ERROR] IO Exception: HEAD request returned a non-200 status code
[ERROR] IO Exception: HEAD request returned a non-200 status code
[ERROR] IO Exception: HEAD request returned a non-200 status code
[ERROR] IO Exception: HEAD request returned a non-200 status code
[WARN] Unable to download the NVD CVE data; the results may not include the most recent CPE/CVEs from the NVD.
[INFO] If you are behind a proxy you may need to configure dependency-check to use the proxy.
[ERROR] IO Exception: HEAD request returned a non-200 status code
[ERROR] IO Exception: HEAD request returned a non-200 status code
It looks like this URL: https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-modified.xml.gz
no longer works and has been changed to https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-modified.xml.gz
.
We are seeing the same issues from the gradle plugin as well. Let me know if more information is needed.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 23
- Comments: 21
Commits related to this issue
- Updating changes to NVD URLs as reported in https://github.com/jeremylong/DependencyCheck/issues/1171 — committed to stevespringett/nist-data-mirror by stevespringett 6 years ago
- Updating NVD URLs as reported in https://github.com/jeremylong/DependencyCheck/issues/1171 — committed to DependencyTrack/dependency-track by stevespringett 6 years ago
- Updating NVD URLs as reported in https://github.com/jeremylong/DependencyCheck/issues/1171 (cherry picked from commit fc66635) — committed to DependencyTrack/dependency-track by stevespringett 6 years ago
- POM files changed - org.owasp - 3.1.1 cause build to fail details https://github.com/jeremylong/DependencyCheck/issues/1171 — committed to RIPE-NCC/rpki-validator-3 by isvonja 6 years ago
- Ui toastr (#23) * UI - toastr * UI - change error messages, disable add button from time is click until response does not arrive * UI - removed useless import * POM files changed - org.owasp... — committed to RIPE-NCC/rpki-validator-3 by isvonja 6 years ago
- spring-boot-starter-parent:1.5.10.RELEASE Updates to NIST NVD URL, see: https://github.com/jeremylong/DependencyCheck/issues/1171 — committed to DanilSuits/dddsample-core by deleted user 6 years ago
This looks like a permanent change in their URL scheme. The difference seems to be adding xml schema version in the URL (…xml/cve/2.0/… instead of …xml/cve/…). From a quick visual check here all feed links seem to follow the new scheme.
Anyway, seems we can work around this by configuring the new URL. In a gradle build script this looks like:
Documentation: https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration-update.html
v3.1.2 was released today which resolves this issue.
You could find new links at https://nvd.nist.gov/vuln/data-feeds#XML_FEED for configuration change as @zerogvt and @shekh-akther mentioned above. For those who use maven - working config:
These cli parameters work for me:
NIST’s XML feed overview page actually lists the new URLs, so DependencyCheck should react immediately and fix this breakage in a new release.
@if08017 same recommendation as the Jenkins folks. Specify NVD URLs typically used for mirroring. You wont actually be using a NVD mirror (although I do recommend it), you’ll simply be correcting the URLs using this method.
Refer to https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html
Until a newer version is available, you can update Jenkins settings to reflect these URLs:
https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-modified.xml.gz https://nvd.nist.gov/feeds/xml/cve/1.2/nvdcve-modified.xml.gz https://nvd.nist.gov/feeds/xml/cve/1.2/nvdcve-2018.xml.gz https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-2018.xml.gz
Hope this helps. I was able to test it on owasp dependency plugin 3.1.1 and 2.1.0
For maven users: please follow Example 5 from documentation: https://jeremylong.github.io/DependencyCheck/dependency-check-maven/index.html
I see that the old URL (https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-modified.xml.gz) is now working again (together with the new URL). Any information about this decision?
@kalyankix - thanks a lot for providing directly the links - worked as a charm for me on my Jenkins!
Any help for cli users? I found the same issue,
Hopefully, this is a temporary configuration issue on their end as it effects the entire Dependency-Check ecosystem. But the URL endpoints have changed. For those who are using nist-data-mirror, it’s been updated with the new URLs and a release pushed to Maven Central. Awaiting synchronization.