Vulnerability Not Detected
Current Behavior
The vulnerability GHSA-qj66-m88j-hmgj:
Is not detected for the following component:
Steps to Reproduce
- Add the component shown in the image to a project
- Enable GitHub advisories
- Run analyser on the project with that component
Expected Behavior
I expect the vulnerability to be detected, since the component version lies within the version range described by the GitHub advisory.
I saw that the versions are a bit special, thez contain "preview" and other punctuation - could it be related to that?
Dependency-Track Version
4.12.0
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
16.4
Browser
Mozilla Firefox
Checklist
- [x] I have read and understand the contributing guidelines
- [x] I have checked the existing issues for whether this defect was already reported
I saw that the versions are a bit special, thez contain "preview" and other punctuation - could it be related to that?
Yeah it seems DT can't work out that 8.0.0-preview.1.23110.8 is lower than 8.0.0. #2826 could help to deal with NuGet-specific versioning like this.
@nscuro thanks for your quick reply. I'm trying to figure out a work around to add the vulnerability manually. Do you have an idea how this could be achieved with reasonable work?
I've tried adding an entry like this, but it did not work:
WITH VulnerabilityID AS (
SELECT "ID" FROM "VULNERABILITY" WHERE "UUID" = 'some uuid'
), ComponentID AS (
SELECT "ID" FROM "COMPONENT" WHERE "UUID" = 'some uuid'
)
INSERT INTO "COMPONENTS_VULNERABILITIES" ("COMPONENT_ID", "VULNERABILITY_ID")
SELECT (SELECT "ID" FROM ComponentID), (SELECT "ID" FROM VulnerabilityID);
Hi @ayedo, have you found a workaround to detect those vulnerabilities?
I tried to reproduce the issue, but creating a component with the same PURL correctly found the vulnerability. I just found that I miss multiple GHSA for another component, and I wonder if this is due to GitHub API rate limitations?
@antoinbo As of version 4.12.x (not sure which bugfix release it was, please check the changelog) we properly handle primary and secondary rate limiting for GitHub requests. If you're running an older version then that might indeed be the issue.
I have the same issue Missing some vulnerabilities GHSA-jvhh-2m83-6w29 for example