OSV.dev-Compatible PURL Examples by Ecosystem
| Ecosystem | Correct OSV.dev PURL Format | Common Mistake to Avoid |
|---|---|---|
| npm / Node.js | pkg:npm/lodash@4.17.19 | Omitting @version or using pkg:generic/lodash |
| Debian Linux | pkg:deb/debian/openssl@3.0.11-1~deb12u2 | Using upstream version 3.0.11 without Debian revision |
| PyPI / Python | pkg:pypi/cryptography@42.0.2 | Using uppercase or underscores mismatched from PyPI |
| Go Modules | pkg:golang/golang.org/x/net@v0.22.0 | Dropping the leading 'v' prefix on Go semver |
| Rust / Crates | pkg:cargo/rustls@0.22.2 | Using 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.
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
Live OSV.dev API Vulnerability Scanning for SBOMs Explained
How Google's Open Source Vulnerabilities (OSV.dev) querybatch API scans CycloneDX and SPDX PURLs for real-time CVEs, GHSAs, D…
NTIA Minimum Elements for an SBOM: 7-Point JSON Checklist
Exact JSON field mapping for all 7 NTIA Minimum Elements across CycloneDX and SPDX: Supplier, Component Name, Version, PURL/C…
IoT & Embedded Firmware SBOM Guide (CycloneDX 1.5/1.6)
How hardware & IoT teams build EU CRA-compliant firmware SBOMs covering Debian/Yocto OS packages, C/C++ libraries (OpenSSL, E…