Guide · CRAClock · EU Cyber Resilience Act
What is a package URL (purl) in an SBOM?
By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026
Short answer: A package URL — purl — is the standard identifier that names a component across every tool: a scheme (pkg:), the ecosystem type (pypi, npm), the name, and the version: pkg:pypi/[email protected]. CRAClock builds one for every SBOM component, lowercasing PyPI names and preserving npm's @scope/name forms. Purls are why your SBOM can be consumed by scanners, OSV lookups and diff tools without any of them knowing your stack: the identity travels with the component.
Generate your free SBOM + readiness pack → Compare two releases free · See pricing
What is a package URL (purl)?
A package URL is a standardised string identifying a software package in its ecosystem: pkg:<type>/<name>@<version>, with qualifiers where needed. In CRAClock's SBOMs every component carries one — pkg:pypi/<lowercased-name>@<version> for Python components, pkg:npm/<name>@<version> for JavaScript, with scoped npm names kept whole. The purl is the join key of the SBOM ecosystem: vulnerability data, scanners and diff tools all meet at the purl, which is why getting it exactly right matters more than any other single field.
Why components need universal IDs
A component's name, as written in a manifest, is a local fact: capitalisation varies, ecosystems have scopes and namespaces, and the same string can name different packages in different ecosystems. Tools that consume SBOMs — scanners querying OSV, procurement platforms checking policies, diff tools comparing releases — need an identity that survives travel between systems. The purl supplies it: one grammar, ecosystem-typed, version-qualified, parseable everywhere.
Think of the purl as the component's passport. Inside your build, 'Requests' (as someone typed it) is enough for the installer. At every border — the scanner, the customer's platform, your own diff between releases — the purl is the identity that is checked. CRAClock's parsers mint purls with the same care an installer resolves names, because a malformed purl does not error loudly; it matches nothing, silently, forever.
Anatomy of the purls CRAClock builds
For a Python component the purl is pkg:pypi/<name>@<version> with the name lowercased — PyPI treats names case-insensitively and the ecosystem's canonical form is lowercase, so requests and Requests are one component with one purl. For npm the purl is pkg:npm/<name>@<version> with the name as the ecosystem knows it, including the @scope/ prefix for scoped packages: pkg:npm/@babel/[email protected] identifies that component exactly, where dropping the scope would point at a different (or nonexistent) package.
Where a manifest gives no exact version, the purl is built without the @version part rather than with an invented one — the identity of the package is still asserted, the version honestly absent. Consumers can then at least count and classify the component, and the checklist can count it against pinning. A fabricated version, by contrast, would send every consumer confidently to the wrong record.
Purls at work: matching and diffing
OSV lookups key on ecosystem and name with version ranges; the purl decomposes into exactly those fields, which is why CRAClock's scans can move from SBOM to vulnerability answers mechanically. The diff tool uses purls as component identity across documents: same purl means same component (with version movement read from the purl pair), a purl on one side only means an added or removed component. Misspell a purl and the machinery does not complain — it concludes the component vanished and another appeared, corrupting both scan and diff in silence.
This fragility is precisely why purls are generated by parsers from manifest data, never typed by humans into documents. Every purl in a CRAClock SBOM is derived: name from the manifest entry, normalisation by the ecosystem's rule, version from the pin. The derivation is the quality control.
Ecosystem quirks worth knowing
PyPI's normalisation goes beyond lowercasing in the wider ecosystem — runs of -, _ and . are equivalent in package names — which is why mature tooling canonicalises aggressively before matching. npm's quirk is scope: the @scope is part of the name, not metadata about it. Version strings carry their own dialects (prerelease tags, build metadata) and are carried verbatim from exact specifiers, because the ecosystem's records use the same strings.
The lesson for vendors is not to memorise the quirks but to respect the layer that handles them. When you read your SBOM, spot-check a few purls against the manifest with these rules in mind — lowercase on the Python side, scope intact on the JavaScript side, versions matching the pins — and you have verified the identity layer your whole monitoring chain depends on.
The purl in your evidence
Purls also serve the human record. A vulnerability discussion that names components by purl is unambiguous across teams and tools: 'pkg:pypi/[email protected]' in an incident note, a customer answer or a remediation ticket points at exactly one thing in every system that will ever read it. Incident records and procurement answers written with purls age well; those written with 'the crypto library' do not survive staff changes or tool migrations.
Adopt the habit in your own artefacts: scan findings, diff reviews and disclosure correspondence all read better with purls attached. It costs nothing — the SBOM and scan outputs already speak purl — and it removes an entire category of 'which component did we mean?' from your future. The CRA's machinery is built on exact identity; purls are where that exactness becomes a string you can paste.
Your 5-action checklist
- Open your generated SBOM and verify three purls by eye: PyPI names lowercased, npm scopes intact, versions equal to the pins.
- Treat any component whose purl lacks a version as a pinning task, and close it in the manifest.
- Use purls when recording scan findings and incident notes, so every reference is unambiguous.
- When a customer or CSIRT asks 'which component?', answer with the purl alongside the friendly name.
- After regenerating an SBOM, diff it: purl-level changes are the inventory's change log.
Work through the list in order. The free CRAClock job on the home page produces the SBOM, the dated checklist and the reporting runbook that several of these actions depend on.
Worked example: the capital letter that hid a component
A fictional vendor's early hand-kept inventory listed 'Django' in a spreadsheet while their scanner expected ecosystem-canonical identities; the mismatch was invisible until an SBOM generated by CRAClock showed the component as pkg:pypi/[email protected] — lowercased, versioned, matchable — and the first real scan immediately associated the component with its published records, two of which the team needed to assess. Nothing about the product had changed; only its identity had become legible to the machinery.
The same week, the JavaScript side taught the scope lesson: an unscoped transcription of a build tool's name matched nothing in any database, while the SBOM's pkg:npm/@scope/name form matched exactly. The vendor's takeaway became a team aphorism: components do not have names, they have purls — and every process that forgets it manufactures blind spots.
Keep going
- Free SBOM + readiness pack — paste a manifest, get the CycloneDX SBOM, checklist and runbook.
- SBOM change-to-impact analysis — diff two releases before you ship.
- CRAClock pricing — Free, Pro $29/month and Team $79/month.
- All CRAClock guides — the full library for small EU software vendors.
- CRAClock console — products, scans, incidents, vault and trust pages.
- What is a CycloneDX SBOM?
- What is an SBOM and why does the CRA require one?
- How to generate an SBOM from package.json
- How to generate an SBOM from requirements.txt
- What is OSV and how does CRAClock use its vulnerability data?
- How to diff two SBOMs between releases
- How to scan your products for vulnerabilities with OSV
Frequently asked questions
Is purl a standard or a CRAClock invention?
A community standard (the package-url specification) used across the SBOM and vulnerability ecosystem — CycloneDX carries it as a component field and OSV-style lookups decompose it. CRAClock builds purls; it did not invent them, which is exactly why they work as join keys between tools.
Why are PyPI names lowercased in purls?
Because PyPI identity is case-insensitive and the canonical form is lowercase. Lowercasing guarantees that 'Requests' in a manifest and 'requests' in vulnerability data resolve to the same component identity.
What happens to a purl when the version is unpinned?
It is emitted without the version segment — identity asserted, version honestly absent. Scanners then cannot version-match the component, which is the concrete cost the pinning checklist item measures.
Do scoped npm packages keep their scope in the purl?
Yes — the @scope is part of the package's name and identity. pkg:npm/@babel/[email protected] and an unscoped variant would be different identities; dropping the scope would break matching.
Where else will I see purls?
In scan findings, SBOM diffs, OSV records and procurement tooling — everywhere components are referenced across system boundaries. Learning to read them is a small investment that pays across your whole security workflow.
CRAClock prepares drafts and evidence; regulatory submission is always performed by you in ENISA's Single Reporting Platform. This guide is general information about the duties CRAClock supports, not legal advice.