Snyk analyser fails for SBOMs with components that share vulnerabilities #4716
Labels
defect
Something isn't working
integration/snyk
Related to the Snyk integration
p2
Non-critical bugs, and features that help organizations to identify and reduce risk
size/S
Small effort
Milestone
Current Behavior
I've run into a regression on
master
that causes the Snyk analyser to fail when processing vulnerabilities shared by multiple components (e.g. two similar versions of the same component.) The first instance ofSnykAnalysisTask
will succeed, and all subsequent instances that touch on a common vulnerability will fail with the following error:This issue only appears to exist on
master
,4.12.6
is not affected. I believe the regression was introduced in #4359, and I've confirmed it does not affect the preceding commit ba4400e.Steps to Reproduce
The issue can be reproduced by creating a new project and uploading the following SBOM:
demo_sbom.json
One of the components will complete its analysis, the other two will fail:
Once the project is in this state it appears to remain there, e.g. triggering a new analysis will fail with the same error.
The issue can also be reproduced by manual actions in the UI, e.g. creating a copy of an already analysed component with a slightly different version, or modifying the existing component to have a different version.
Expected Behavior
DT should successfully analyse projects involving components that share vulnerabilities.
Dependency-Track Version
4.13.0-SNAPSHOT
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
17.3
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: