OSV.dev-Compatible PURL Examples by Ecosystem

EcosystemCorrect OSV.dev PURL FormatCommon Mistake to Avoid
npm / Node.jspkg:npm/lodash@4.17.19Omitting @version or using pkg:generic/lodash
Debian Linuxpkg:deb/debian/openssl@3.0.11-1~deb12u2Using upstream version 3.0.11 without Debian revision
PyPI / Pythonpkg:pypi/cryptography@42.0.2Using uppercase or underscores mismatched from PyPI
Go Modulespkg:golang/golang.org/x/net@v0.22.0Dropping the leading 'v' prefix on Go semver
Rust / Cratespkg:cargo/rustls@0.22.2Using pkg:rust/ instead of pkg:cargo/

PURL Anatomy

pkg : <type> / [namespace/] <name> @ <version> [?qualifiers] [#subpath]
Example: pkg:deb/debian/dropbear@2022.83-1

Why pkg:generic/ Returns Zero CVEs on OSV.dev

OSV.dev indexes advisories by real package ecosystems (npm, PyPI, Go, crates.io, Debian, Alpine, Maven, NuGet). If your SBOM generator emits pkg:generic/openssl@1.1.1k, automated scanners miss real distro security patches and CVEs. Always emit ecosystem-accurate PURLs during build.

Validate Your SBOM & Scan Live CVEs Locally
Run 22 NTIA & EU CRA checks, query live api.osv.dev, and export OpenVEX v0.2.0 in seconds.
Launch CheckSBOM Free →

Frequently Asked Questions

Does CheckSBOM validate PURL syntax automatically?

Yes. Rule CRA-PURL checks every component against the PURL specification and flags unscannable entries.

Related EU CRA & SBOM Guides