Repository navigation
Description
Current Behavior
When Dependency-Track came into existence around 2013, the only public and widely accepted vulnerability database was the NVD. Since its inception, DT has supported
mirroring of the NVD.
Over the past decade, multiple other public vulnerability databases came into existence:
- GitHub Security Advisories: https://github.com/advisories
- OSV: https://osv.dev/
Those databases filled a large gap in the vulnerability intelligence space: They support Package URL. To this date, the NVD still operates exclusively on CPE, which is understood to be problematic.
Further, more and more entities maintain their own databases, which may or may not feed into the larger databases listed above, for example:
- AlmaLinux: https://errata.almalinux.org/
- Alpine: https://secdb.alpinelinux.org/
- Amazon Linux: https://alas.aws.amazon.com/
- Arch Linux: https://security.archlinux.org/
- Azure Linux: https://github.com/microsoft/AzureLinuxVulnerabilityData
- Bitnami: https://github.com/bitnami/vulndb
- Debian: https://www.debian.org/security/#DSAS
- Go: https://go.dev/doc/security/vuln/database
- Node.js: https://github.com/nodejs/security-wg/tree/main/vuln
- Oracle Linux: https://linux.oracle.com/security/
- PHP: https://github.com/FriendsOfPHP/security-advisories
- Red Hat: https://access.redhat.com/security/data
- SUSE: https://www.suse.com/support/security/csaf/
- Ubuntu: https://ubuntu.com/security/oval
- Wolfi: https://github.com/wolfi-dev/os/security#retrieving-security-feeds-from-wolfi
The NVD is a database provided by the US government. Other nation states or regions
May provide their own equivalent - The EU discussed this possibility, and China already has one. Vendors selling products in these regions will likely need to analyze their products using such databases to comply with regulations.
The situation is further complicated by the fact that multiple sources can provide information for the same vulnerability: While the NVD will only report CVEs, and GitHub Security Advisories only GHSAs, OSV may report both. This can lead to conflicting information, since vulnerability metadata may vary across data sources: descriptions, severities, risk ratings, affected version ranges, fixed versions, and more.
Currently, DT tries to avoid surfacing conflicting information to users by enforcing which source can modify what kind of vulnerability. For example, the NVD is considered the authoritative source for CVEs, GitHub for GHSAs, and so on. This system fails when, like it happened with the NVD, upstream databases lag behind in providing up-to-date information. A problem which could be avoided by taking the data of all databases into consideration.
Finally, by having each instance of Dependency-Track download all this data over and over again, we’re putting public infrastructure such as the NVD under unnecessary stress. The NVD experienced major availability issues at the beginning of 2024, and the many DT instances downloading data from it certainly played their part in this.
Related issues:
- openssl - ubuntu package - versions not matched correctly #1374
- Unreliable vulnerability detection when using deb purls #2062
- The internal analyzer is not detecting vulnerabilities in Dependency Track #2797
- Add support for
versversion ranges and ecosystem-specific version comparisons #2826 - Add support for Amazon ALAS datasources for Amazon Linux 1, 2 & 2023 #3609
- Analyze vulnerabilities for rpm packages in RedHat or CentOS operating systems #3991
- Trivy analyzer can't detect SLES OS #4051
Related discussions:
Proposed Behavior
The primary goal is to establish a centrally managed, pre-compiled vulnerability database, that all DT instances can consume. Users should receive more accurate, more complete data out-of-the-box, without having to tweak any settings.
Further details are documented here: https://docs.google.com/document/d/1DVV4ik7NGOBc6u-fdPlPVKoplNmSpzDT6iC4FJAFYi0/edit?usp=sharing
Note
Please request edit permissions if you'd like to add comments or suggest changes.
This proposal was brought up in the September Community Meeting!
You can watch the recording here: https://www.youtube.com/watch?v=hzelt7jv6dE&t=1188s
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this enhancement was already requested
Activity
Shortfinga commentedon Oct 21, 2024
Is anybody working on this already?
I'd like to contribute...
What would be a good plan to tackle this?
nscuro commentedon Oct 21, 2024
Hey @Shortfinga, thanks for throwing your hat into the ring!
Work has not officially started yet, primarily because we were hoping for a bit more community feedback and involvement. So thanks a lot for doing just that!
This would be the best way to start for community contributions, yes. The linked Google Doc has quite a few requirements in the Goals section. A large chunk of this work is coming up with a workable solution to building and distributing the database (file format, storage location, consumption etc.). Again the Doc has more details on what we need.
Please feel free to request permissions on the doc and add comments where things are unclear, or when you want to add things. Having a discussion in there, and bouncing ideas around would be a very good start I think.
I have started drafting the Dependency-Track side of things a while ago, but it needs a lot more fleshing out: https://github.com/DependencyTrack/hyades/blob/f60fa37510ec090d0eed42f8a82842bca6e999ff/docs/architecture/design/vulnerability-db-v2.md
However, the implementation in DT does not necessarily depend on how the centralized database looks. All that matters is that the Goals are met so the DB is useful for DT.
nscuro commentedon Oct 21, 2024
FYI, I added a link to the recording of our September community meeting, where we discussed this topic, to the issue description. Perhaps this is helpful for people curious what this is all about.
nscuro commentedon Nov 29, 2024
Trivy is facing issues due to rate limiting of services hosting their databases: aquasecurity/trivy#8009
This is certainly relevant to us as well, since we're aiming to follow a similar model as them.
nscuro commentedon Jan 4, 2025
nscuro commentedon Jan 7, 2025
I have created sub-issues for some initial work items we'll need to tackle. It's mostly research at this point, but help would still be much appreciated.
It might just be that there exist one or two efforts by other projects which we can use to significantly slash the work we need to do ourselves.
nscuro commentedon Apr 7, 2025
Some exploratory work has been started here: https://github.com/DependencyTrack/vuln-db
rauburtin commentedon May 16, 2025
Perhaps, you could add the new European Vulnerability Database - EUVD https://www.enisa.europa.eu/news/consult-the-european-vulnerability-database-to-enhance-your-digital-security
nscuro commentedon May 16, 2025
@rauburtin DependencyTrack/vuln-db#37
ellipse2v commentedon Dec 5, 2025
hi @nscuro Why not try to connect the API https://www.vulnerability-lookup.org/documentation/api-v1.html, which already aggregates many sources, and build a matching system without using CPE codes? thanks.
nscuro commentedon Dec 5, 2025
@ellipse2v Unless I am missing something, vulnerability-lookup does not include any matching information at all, which is a property it shares with the EUVD. Vulnerability metadata is nice but it doesn't solve the fundamental problem that DT has to accurately and reliably match them with the components in its inventory.
I would love to abandon CPE entirely, but the reality is that it's still widely used for hardware vulnerabilities. Package URL by definition does not fill this gap. Whatever solution we come up with (or someone else does in a way we can adopt), needs to support multiple types of matching criteria.
ellipse2v commentedon Dec 5, 2025
hi, yes there is no matching information, we need to match component with informations provide in the json part 'https://vulnerability.circl.lu/vuln/cve-2025-14005) like the fuzzing.There would certainly be more false positives, but it could broaden the scope of covered components. the interresting point is, they grab a lot of data that can become on single entry point like OSV.
Yaytay commentedon Apr 10, 2026
Just a bit of community feedback: this would be great, but wouldn't you very quickly run into the same performance problems that NVD has?
What I'd really like to see is this, mirrored by our dtrack instance, and then picked up by build-time scans (https://github.com/dependency-check/).
That would be a significant boost to our pipelines and reduced load on public services.
nscuro commentedon Apr 29, 2026
@Yaytay The Google doc explicitly calls this out as a goal:
Because yes, making this an API is not sustainable and a non-starter.
rahmanhaidari900-hue commentedon Oct 16, 2026
savek-cc commentedon Nov 12, 2026
I'm looking into building such a database and feeding it into DT, along the lines of the goals document of this issue: file-based, several upstream sources merged, the origin kept per record. A first test would be the NVD enriched with Anchore's nvd-data-overrides. More sources (GitHub advisories, OSV, the CVE records published by CNAs, ...) can then be added on the producer side without touching DT.
I'm thinking about how DT would consume it, and would like to check two questions with you before going further.
1. Data source or primary database?
Today the NVD, GitHub advisories and OSV are built-in data sources on the same extension point, and JVN was added the same way. The goals document says users should get more complete data "out-of-the-box, without having to tweak any settings", and #4529 plans schema changes to make use of the database. Do you see the database as one more data source next to the existing ones, or as the primary source that replaces per-instance mirroring once it works well?
2. How to handle overlap while both exist?
If the database includes the NVD, the NVD data source should not run next to it. Both deliver the same records (CVE IDs, source NVD), and DT lets only the source that owns NVD records update them. While the NVD data source is enabled, the new source's data is skipped for every NVD record that already exists in the database. CVEs that do not exist yet are still accepted. The same applies to GitHub advisories and OSV. Analyzers are affected the other way around: their records for an NVD CVE are only stored if the NVD data source is disabled. At the same time, users will often want to keep some analyzers, for example Trivy for OS packages. So "use only the new source" is too coarse.
Option A needs a change in the core though: in the rules that decide which source may update which records, and in the mirror scheduling, which today only covers the built-in data sources. An extension can only see its own configuration, so a data source cannot do this on its own.
If the database is meant to become the primary source, option A could also serve as the transition path: replace the NVD first, then GitHub advisories and OSV, without a hard switch. Option A is the direction I would take for a prototype, so it would help to know whether it fits your plans.