referenceLocator purl does not include upstream information about system packages #4319
Replies: 5 comments
-
Hello @beltran-rubo We created #3971 to add Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
@beltran-rubo Thanks for raising the issue. I didn't find the specification. Could you share a link that we should reference? |
Beta Was this translation helpful? Give feedback.
-
That is right, still not there but there are other tools following that convention. See #3485 that Syft already includes that information as part of the |
Beta Was this translation helpful? Give feedback.
-
I'm not sure upstream is the best solution here. We include the source information in custom properties of SPDX and CycloneDX. It seemes to be Syft-specific design yet. Syft can follow our approach. We should discuss and define it in PURL. |
Beta Was this translation helpful? Give feedback.
-
In the case of SPDX the source information is a plain string that would be difficult to parse it to get the package name, e.g. |
Beta Was this translation helpful? Give feedback.
-
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/libssl1.1@1.1.1n-0+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/libssl1.1@1.1.1n-0+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
:Beta Was this translation helpful? Give feedback.
All reactions