NVD API update process retries indefinitely with repeated request failures #8633
Replies: 14 comments 3 replies
-
|
This is not a bug on our side and nothing we can do. NVD updated their data yesterday. Hence, if ODC updates the local database it'll have to pull ~350'000 records from the NVD. As the NVD infrastructure apparently (still) isn't prepared to handle such load, it errors out with HTTP 503.
Source: https://www.nist.gov/itl/nvd#news-updates We build the database daily like so (ODC CLI): # Load the current NVD data and suppression files into the local ./data dir.
# First, get the cached feed files as a basis.
# They are force-updated every 24h, see https://github.com/dependency-check/DependencyCheck_Builder/blob/main/.github/workflows/cache.yml and https://github.com/dependency-check/DependencyCheck_Builder/tree/gh-pages.
# Then fetch the latest delta from the NVD API.
$ bin/dependency-check.sh --updateonly --nvdDatafeed=https://dependency-check.github.io/DependencyCheck_Builder/nvd_cache/nvdcve-{0}.json.gz && \
$ bin/dependency-check.sh --updateonly --nvdValidForHours=0 --nvdApiKey="$NVD_API_KEY"This is not yet completely optimized but usually keeps us well shielded from NVD infra issues. However, the delta pull (2nd command) now has to pull all changes since 2026-06-16T20:58:59Z - that is the value |
Beta Was this translation helpful? Give feedback.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
-
Either use a different CVE source or use OWASP Dep. Track (easy to run locally using Podman / Docker) and instead of generating your CVE scan in the pipeline, upload / import your SBOM to Dep. Track. Extra points for setting up an OWASP Dep. Track server in your stack and auto-uploading them as part of the pipeline. Dep. track monitors ALL dependencies, and raises issues based on not just CVEs, but also licensing issues. You can set policies, like "should have no CVE's of 7+" and report on which apps are within policy and which are not. And obv. the graphs of CVEs over time is something mgnt will drool over(I hope... if numbers go down)
|
Beta Was this translation helpful? Give feedback.
-
|
https://www.nist.gov/itl/nvd#june-17-2026-nvd-deployment-update-ssvc-and-cve-affected-data-no https://socket.dev/blog/federal-audit-finds-nist-wasted-funds-with-no-plan-to-clear-nvd-backlog As @marcelstoer says, nothing this project can do. Wait for the load peak to pass, and properly cache updates, or use the data feed URL with the cache as noted at #8435 (comment) (which will likely be stale for the same reasons as noted here, but might be better than nothing). Every time NVD make any change to their responses, their whole system goes down. Has been happening for years, and it will not change any time soon. See #8435 (comment) or the literally dozens of duplicate threads. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
|
@sellersj If people are OK using data feeds rather than the API, there are already two supported choices:
The reason they are not generally recommended as a default is that it uses a lot more bandwidth, and one should probably cache or proxy downloads locally to avoid either getting throttled by GitHub or putting more load on the NVD. Additionally worth noting that a few months ago NVD's own feeds went completely stale for two weeks without any explanation - before being silently fixed. |
Beta Was this translation helpful? Give feedback.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
For those who are not using command line but via maven: While NVD Api is being flaky. Don't put this as always for CICD systems. See why at this comment: #8633 (comment) Add the below to your pom.xml and then use Do note that this will blat the database so use with caution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Precondition
Describe the bug
During the vulnerability database update phase, Dependency-Check repeatedly retries NVD API requests without providing enough information about the underlying failure.
Version of dependency-check used
Dependency-Check Core version 12.2.2
Log file
https://gist.github.com/sakenalimbayev/5559dca430a31defdd8cc3b506f2503c
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Report generated successfully
Beta Was this translation helpful? Give feedback.
All reactions