Skip to content

VEX import does not apply to SNYK/OSV/VULNDB sources #2538

Closed

Description

@syalioune

Current Behavior

Current implementation of CycloneDXVexImporter contains a vulnerability source filter that seems incomplete.

 if ((vuln.getSource().equals(Vulnerability.Source.NVD.name())
                        || vuln.getSource().equals(Vulnerability.Source.OSSINDEX.name())
                        || vuln.getSource().equals(Vulnerability.Source.GITHUB.name())
                        || vuln.getSource().equals(Vulnerability.Source.INTERNAL.name()))
                        && vuln.getVulnId().equals(cdxVuln.getId())) {

As it stands, vulnerability from OSV, SNYK, VULNDB cannot be audited using a VEX file.

Steps to Reproduce

  1. Enable NVD and OSV analyzers, and wait for the sync to complete
  2. Create a SBOM containing components pkg:deb/debian/[email protected] and pkg:alpine/[email protected] which are respectively affected by vulnerabilities DSA-2715-1 from OSV and CVE-2021-23437 from NVD (see attached file)
  3. Upload the SBOM and ensure that the vulnerabilities are indeed found for the test project
  4. Create a VEX to set vulnerabilities DSA-2715-1, CVE-2021-23437 as false_positive (see attached file)
  5. Check that only CVE-2021-23437 has been audited and is suppressed

2538-sbom.txt
2538-vex.txt

Expected Behavior

Vulnerabilities from OSV, SNYK, VULNDB are audited upon VEX upload just like any other vulnerabilities

Dependency-Track Version

4.8.0-SNAPSHOT

Dependency-Track Distribution

Container Image

Database Server

N/A

Database Server Version

No response

Browser

Google Chrome

Checklist

Activity

  1. added
    defect
    on Feb 28, 2023
  2. added
    p2
    and removed on Mar 1, 2023
  3. added this to the 4.8 milestone on Mar 1, 2023
  4. msymons commented on Mar 1, 2023

    @msymons
    Member

    Include tests to ensure that future integrations do not slip through the net.

  5. syalioune commented on Mar 1, 2023

    @syalioune
    ContributorAuthor

    Include tests to ensure that future integrations do not slip through the net.

    I'm even wondering, is this filter really necessary? I can't think of a reason why a vulnerability from a specific source should be excluded from vex processing.

  6. added a commit that references this issue on Apr 12, 2023
    1802a8c
  7. github-actions commented on May 12, 2023

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked as resolved and limited conversation to collaborators on May 12, 2023
  9. added a commit that references this issue on Jun 17, 2026
    83c1fc0
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

    defectp2

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions