Skip to content

Unreliable vulnerability matching for SemVer suffixes #7327

Closed

Description

@flodt

Current Behavior

We observed that Dependency-Track does not correctly match vulnerabilities for a package whose PURL contains a SemVer (pre-release) suffix:

For the npm package placeholder fs, the current listed version is 0.0.1-security. This can be interpreted as valid SemVer, as the suffix falls under point (9.) of the specification.
For this package, there is the malicious package OSV record with identifier MAL-2025-21003.
This vulnerability record lists "Introduced 0" in the Affected ranges, which reads as every possible version is affected.

In Dependency-Track, this vulnerability is imported from OSV with the following Affected Components:

Image

However, the vulnerability is only matched to fs with component versions other than the 0.0.1-security containing the suffix:

Image

All of these entries in the screenshot above contain a PURL in the form pkg:npm/[email protected].

Steps to Reproduce

  1. Create a new project in Dependency-Track.
  2. Add components for fs in versions 0.0.1 and 0.0.1-security with PURLs pkg:npm/[email protected] and pkg:npm/[email protected], respectively.
  3. Trigger the vulnerability analysis through Audit Vulnerabilities > Reanalyze.
  4. Check for vulnerability records.

Expected Behavior

The vulnerability record MAL-2025-21003 is expected to be matched to fs in version 0.0.1-security as well.

Dependency-Track Version

5.x

Browser

Microsoft Edge

Checklist

Activity

  1. added
    defect
    on Sep 17, 2026
  2. added this to the 5.1.1 milestone on Sep 17, 2026
  3. added
    p2
    size/S
    and removed on Sep 17, 2026
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

    defectp2size/S

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions