CVSS 4.0 scoring missing #8116
-
DescriptionAlthough CVSS 4.0 is theoretically supported since #7968, the report doesn't include the CVSS 4.0 scoring. Desired BehaviorI expect that the json report will include the CVSS 4.0 scoring. Actual BehaviorScanning pkg:npm/path-to-regexp@0.1.10 Trivy reports the CVE-2024-52798 without any CVSS 4.0 information. Reproduction Steps1. Using the spdx.json file
{
"spdxVersion": "SPDX-2.3",
"dataLicense": "CC0-1.0",
"SPDXID": "SPDXRef-DOCUMENT",
"name": "Test",
"packages": [
{
"name": "path-to-regexp",
"SPDXID": "SPDXRef-Package-4677bd488ed2dd2",
"versionInfo": "0.1.10",
"supplier": "NOASSERTION",
"downloadLocation": "NONE",
"filesAnalyzed": false,
"externalRefs": [
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:npm/path-to-regexp@0.1.10"
}
],
"primaryPackagePurpose": "LIBRARY"
}
],
"relationships": [
{
"spdxElementId": "SPDXRef-DOCUMENT",
"relatedSpdxElement": "SPDXRef-Package-4677bd488ed2dd2",
"relationshipType": "DESCRIBES"
}
]
}
2. Execute
```bash
trivy sbom spdx.json --format json
Operating SystemUbuntu Version$ trivy --version
Version: 0.58.0
Vulnerability DB:
Version: 2
UpdatedAt: 2024-12-17 06:16:04.798697378 +0000 UTC
NextUpdate: 2024-12-18 06:16:04.798697017 +0000 UTC
DownloadedAt: 2024-12-17 10:46:05.210908447 +0000 UTC
Java DB:
Version: 1
UpdatedAt: 2024-12-10 02:50:36.32311274 +0000 UTC
NextUpdate: 2024-12-13 02:50:36.32311262 +0000 UTC
DownloadedAt: 2024-12-10 15:34:29.029606518 +0000 UTC Checklist
|
Beta Was this translation helpful? Give feedback.
Answered by
DmitriyLewen
Dec 18, 2024
Replies: 1 comment 1 reply
-
Hello @javierfreire Trivy shows only CVSS for NVD source - #7059 (comment) Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DmitriyLewen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @javierfreire
Trivy shows only CVSS for NVD source - #7059 (comment)
CVE-2024-52798 doesn't have NVD CVSS 4.0:
Regards, Dmitriy