You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating an SBOM using cdxgen with -t docker, the resulting BOM includes a purl of type oci that incorrectly uses the repository URL as thenamespace, which is explicitly disallowed by the current purl specification.
Move repository or registry details to a repository_url qualifier (e.g., pkg:oci/rearm-cli@sha256:696a2e4d457df5be966a4570d9695905b3d0afcf69d7728f0746d836504c4fce?repository_url=registry.relizahub.com/library).
When generating an SBOM using
cdxgen
with-t docker
, the resulting BOM includes apurl
of typeoci
that incorrectly uses the repository URL as thenamespace
, which is explicitly disallowed by the current purl specification.Steps to Reproduce:
Problem:
According to the purl spec for OCI:
This means:
The
namespace
should be omitted from the purl.Information like
registry.relizahub.com/library
orghcr.io/org/
should instead go into arepository_url
field.Including the namespace violates the spec and may cause issues with tooling that strictly parses
purl
.There's an open issue for this on purl-spec as well OCI PURL type should allow namespace declaration #425
Suggested Fix:
Remove the
namespace
segment from OCIpurl
s.Move repository or registry details to a
repository_url
qualifier (e.g.,pkg:oci/rearm-cli@sha256:696a2e4d457df5be966a4570d9695905b3d0afcf69d7728f0746d836504c4fce?repository_url=registry.relizahub.com/library
).Version Info:
cdxgen version: 11.2.6
References:
The text was updated successfully, but these errors were encountered: