Skip to content

Towards a centralized vulnerability database for Dependency-Track #4122

Open
0 of 6 issues completed
Open

Description

@nscuro

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:

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:

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:

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

Sub-issues

Sub-issues

0 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added
    enhancement
    help wanted
    p2
    size/XL
    on Sep 4, 2024
  2. pinned this issue on Sep 22, 2024
  3. Shortfinga commented on Oct 21, 2024

    @Shortfinga

    Is anybody working on this already?
    I'd like to contribute...

    What would be a good plan to tackle this?

    • Draft for how the database could look like
    • PoC for updating it (tools, processes)
    • PoC for integating it to dependency-track?
  4. nscuro commented on Oct 21, 2024

    @nscuro
    MemberAuthor

    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!

    Draft for how the database could look like

    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.

    PoC for integrating it to dependency-track?

    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.

  5. nscuro commented on Oct 21, 2024

    @nscuro
    MemberAuthor

    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.

  6. nscuro commented on Nov 29, 2024

    @nscuro
    MemberAuthor

    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.

  7. nscuro commented on Jan 4, 2025

    @nscuro
    Author
  8. nscuro commented on Jan 7, 2025

    @nscuro
    MemberAuthor

    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.

  9. nscuro commented on Apr 7, 2025

    @nscuro
    MemberAuthor
  10. rauburtin commented on May 16, 2025

    @rauburtin
  11. nscuro commented on May 16, 2025

    @nscuro
    MemberAuthor
  12. ellipse2v commented on Dec 5, 2025

    @ellipse2v

    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.

  13. nscuro commented on Dec 5, 2025

    @nscuro
    MemberAuthor

    @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.

  14. ellipse2v commented on Dec 5, 2025

    @ellipse2v

    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.

  15. Yaytay commented on Apr 10, 2026

    @Yaytay

    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.

  16. nscuro commented on Apr 29, 2026

    @nscuro
    MemberAuthor

    @Yaytay The Google doc explicitly calls this out as a goal:

    The database SHOULD be file-based. Distributing static files via CDN is preferable to operating a publicly available service, both from a cost and availability perspective.

    Because yes, making this an API is not sustainable and a non-starter.

  17. rahmanhaidari900-hue commented on Oct 16, 2026

    @rahmanhaidari900-hue
  18. savek-cc commented on Nov 12, 2026

    @savek-cc

    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 (my proposal): the data source replaces others via config. A configuration option lists the built-in data sources and analyzers it replaces, for example only the NVD, or the NVD, GitHub advisories and OSV. DT then does not mirror or query the replaced ones, treats the new source as the owner of the vulnerability sources they used to own (NVD, GITHUB, ...), and leaves everything that is not listed as it is. Records keep their IDs and their source, and the new source can update them.
    • Option B: users disable overlapping sources themselves. This works with today's options, but has problems:
      • Ownership is derived from the source name. With the NVD data source disabled, the update rules also allow analyzers to update NVD records, as long as their copy is newer.
      • Affected versions attributed by the previously enabled source stay in place after the switch.
      • A partial configuration can silently skip data, or report the same issue under both a CVE and a GHSA ID.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedp2size/XL

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions