DependencyTrack / DependencyTrack/dependency-track
Support Custom Vulnerability Risk Scores in VEX Import
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
Currently, `Dependency-Track` only considers the [analysis](https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_analysis) section when importing CycloneDX VEX documents, ignoring ratings scores provided in [vulnerabilities[].ratings[]](https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_ratings). This prevents organizations from sharing evolving ratings and scores in a standardized way.
When importing a VEX document with ratings:
```json
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"vulnerabilities": [
{
"id": "DEBIAN-CVE-XXX",
"source": {
"name" : "OSV"
},
"ratings": [
{
"method": "OWASP",
"score": 5.0,
"severity": "critical"
}
],
"analysis": {
"state": "in_triage",
"detail": "Severity overridden via OWASP Risk Rating (score 5.0 → critical)"
},
"affects": [
{
"ref": "urn:cdx:078c9fd1-d871-4a3f-9820-2dfb5ee3d212/1#pkg:deb/debian/bash@5.1-2%2Bdeb11u1?arch=amd64&distro=debian-11.11"
}
]
}
]
}
```
`Scores` are not considered by `Dependency-Track`
### Proposed Behavior
Similar to how `analysis.state` tracks vulnerability lifecycle changes (e.g., `exploitable` → `resolved`), the `ratings[].score` field should be used to communicate evolving risk assessments as new threat intelligence emerges.
To support this request, I opened an enhancement [proposal](https://github.com/CycloneDX/specification/issues/719) in the CycloneDX specification to push consumers to process the ratings field.
### Checklist
- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested
Contributor guide
Assessment
This issue has not been assessed yet.