This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
referenceLocator purl does not include upstream information about system packages #3942
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
scan/sbom
Issues relating to SBOM
Description
The
purl
information does not include theupstream
package that a specific OS package is coming from. For instance:$ trivy image --format spdx-json debian:latest > debian.json
The package
libssl1.1
includes this information"referenceLocator": "pkg:deb/debian/[email protected]+deb11u4?distro=debian-11.6"
. The issue of not including theupstream
information from the package into thepurl
is there is no way to detect CVEs based on that information as those ones are linked to the upstream package.The correct information should be
"referenceLocator": "pkg:deb/debian/[email protected]+deb11u4?upstream=openssl&distro=debian-11.6"
.Into the CycloneDX sBOM it already exists that metadata but not as part of the
purl
.What did you expect to happen?
Include the
upstream
information from the OS packages metadata as part of the sBOM. It does not appear into the SPDX or CycloneDXpurl
.What happened instead?
No
upstream
information as part of thepurl
.Output of
trivy -v
:The text was updated successfully, but these errors were encountered: