Engineers with a laptop at automation test rigs in a bright production hall

SBOM

Package URL (purl): the SBOM component identifier, explained

Last updated:

A purl (Package URL), formally standardized by Ecma International as ECMA-427 in December 2025, is the identifier pkg:type/namespace/name@version?qualifiers#subpath that names one exact software package the way its own ecosystem's package manager would — an npm package, a Maven artifact, a PyPI wheel — rather than a free-text name a scanner has to guess at. CycloneDX and the OSV vulnerability schema already require or recommend it as the preferred way to identify a component without ambiguity.

Sources: the purl-spec repository and packageurl.org documentation, the Ecma International ECMA-427 page, the CycloneDX, OSV, CSAF and CVE record schemas, and a read-only NVD API query, all read on 10 November 2026. Check field names against the spec version your own tools implement.

Key takeaways

  • Sources: the purl-spec repository and packageurl.org documentation, the Ecma International ECMA-427 page, the CycloneDX, OSV, CSAF and CVE record schemas, and a read-only NVD API query, all read on 10 November 2026.
  • The specification's own example shows these assembled: pkg:npm/%40angular/[email protected] — type npm, namespace @angular (percent-encoded as %40angular), name animation, version 12.3.1.
  • It is now both a community-governed open specification and a formal standard.
  • Two tools agree that a component is the same only if they produce the same string.

What is a purl, exactly?

Per the specification's own documentation at packageurl.org, a purl is "a standard URL-based syntax to identify software packages, independent from their ecosystem or distribution channel." The purl-spec project, maintained on GitHub under the package-url organization, frames the goal as giving teams "a simple, consistent, and flexible approach to identifying software packages with precision and clarity." The problem it solves is a mundane but real one: a string like "openssl 3.0.2" is ambiguous — which ecosystem, which distribution, which exact build — while a purl encodes that context directly into the identifier itself.

What do the seven components of a purl mean?

Component Required? Meaning
scheme Required Always the constant pkg
type Required The package ecosystem — for example maven, npm, pypi
namespace Optional A name prefix, such as an npm scope or a Maven group ID
name Required The package name itself
version Optional The package version
qualifiers Optional Type-specific metadata, such as a Maven classifier or an architecture
subpath Optional A path within the package

The specification's own example shows these assembled: pkg:npm/%40angular/[email protected] — type npm, namespace @angular (percent-encoded as %40angular), name animation, version 12.3.1. Only scheme, type and name are mandatory; everything else is filled in when it is known and omitted when it is not, which is exactly the flexibility a partial-confidence firmware component match needs. Some types make the namespace mandatory, though: deb and apk require the distribution vendor.

Is purl an official standard?

It is now both a community-governed open specification and a formal standard. The GitHub repository remains the actively maintained reference implementation and the registry of recognized package types, but per packageurl.org's own announcement, "PURL was approved by Ecma International as ECMA-427 1st Edition in December 2025." Ecma's own standard page confirms the formal title, "Package-URL (PURL) specification," and describes its purpose as to "[define] the Package-URL (PURL) syntax for identifying software packages independently from their ecosystem or distribution channel." For a procurement document or a technical documentation file that needs to cite a recognized standards body rather than a GitHub URL, ECMA-427 is now that citation.

The same page names Ecma committee TC54 and lists the ISO/IEC number DIS 27056. It also draws a scope line that matters in practice: the Standard specifies the syntax and the schema for defining types, "but it does not include any specific PURL type definitions, such as maven, pypi or npm." Those live in the types folder of the purl-spec repository, so a validator needs the current type definitions as well as ECMA-427. The repository also holds release notes for a 2nd edition, described there as a minor update that adds an ABNF grammar; on 10 November 2026 the Ecma page lists the 1st edition.

How do you build a purl that other tools treat as the same package?

Two tools agree that a component is the same only if they produce the same string. The purl-spec build rules make that deterministic:

  1. Write the scheme pkg and the type in lowercase ASCII, then /.
  2. Split the namespace on /, apply the type's own normalisation, and percent-encode each segment.
  3. Percent-encode the name and, after @, the version.
  4. For qualifiers, drop pairs with an empty value, lowercase each key, percent-encode each value, then sort the pairs and join them with & after ?.
  5. Percent-encode each subpath segment after #, discarding empty, . and .. segments.

The type-specific rules come from the type definition. The deb, apk and github definitions say namespace and name are not case sensitive and "shall be lowercased", so pkg:deb/Debian/Curl and pkg:deb/debian/curl are the same package, and only the second is canonical. The qualifiers guidance asks for the minimal set of qualifiers "necessary for accurate package identification", not every attribute you know.

Which purl type fits each component in a firmware image?

An embedded image mixes distribution packages, build-system recipes, vendored source and closed binaries. The type definitions in the purl-spec repository cover most of them:

Component in the image Type Example What the type definition says
Yocto / OpenEmbedded recipe yocto pkg:yocto/core/[email protected] Namespace is the layer name from BBFILE_COLLECTIONS; name is the recipe's BPN; version is PV; optional repository_url and layer_version qualifiers
Debian or Ubuntu package in the root file system deb pkg:deb/debian/[email protected]?arch=i386&distro=jessie Vendor namespace required, lowercased; arch qualifier; the version is the Debian package version
Alpine or OpenWrt apk package apk pkg:apk/alpine/[email protected]?arch=x86 Vendor namespace "such as alpine or openwrt", lowercased
Code fetched from a GitHub repository github pkg:github/package-url/purl-spec@244fd47e07d1004 Namespace is the user or organisation, name is the repository, both lowercased
Upstream tarball with no package manager generic pkg:generic/[email protected]?download_url=…&checksum=sha256:… For packages "that do not fit anywhere else"; use another or a new type when possible
Go, Rust or Python code golang, cargo, pypi pkg:cargo/<crate>@<version> Ecosystem rules apply, for example name normalisation in pypi

The examples in the first five rows are copied from the type definitions (the generic one shortened). Use our Yocto and Buildroot SBOM guide for how the build system emits these identifiers. A closed vendor SDK or binary blob usually has no fitting type; pkg:generic with a checksum qualifier is the fallback, and the accurate record is the supplier name, a file hash and, if one exists, a CPE.

How is a purl different from a CPE?

Both are component identifiers an SBOM can carry, but they solve different problems. A CPE (Common Platform Enumeration) is NIST's structured identifier, used throughout the National Vulnerability Database, that names a product and a version (or version range) in a vendor-defined taxonomy — useful for matching against published CVEs, but sometimes ambiguous or requiring manual curation when a vendor's own naming is inconsistent. A purl instead gives the exact coordinate a package manager itself would use to fetch that package: ecosystem, namespace, name and version, in the same structure the package was actually published under — deterministic by construction, because it mirrors reality rather than a separately maintained taxonomy. Neither one makes the other redundant; see our SBOM Minimum Elements guide for how the current CISA-led minimum-elements data fields list a Component Identifier as required and name both CPE and PURL as acceptable examples, without mandating one over the other.

Worked example: one firmware component, three identifiers

The case is synthetic: a made-up camera maker builds its firmware with Yocto, and the image contains zlib 1.3.1 from the core layer. The SBOM entry for that one library carries a purl and a CPE:

{
  "type": "library",
  "name": "zlib",
  "version": "1.3.1",
  "purl": "pkg:yocto/core/[email protected]",
  "cpe": "cpe:2.3:a:zlib:zlib:1.3.1:*:*:*:*:*:*:*"
}
Identifier Value Who reads it
purl of the recipe pkg:yocto/core/[email protected] SBOM tools, the customer's inventory, a CSAF product_identification_helper
purl of the upstream source pkg:github/madler/zlib (no version) A CVE record's or OSV entry's packageURL, compared with a separate version range
CPE 2.3 cpe:2.3:a:zlib:zlib:1.3.1:*:*:*:*:*:*:* NVD applicability data, which most CVE matching still runs on

Each answers a different question. The recipe purl says which build input your firmware used; the upstream purl lets a vulnerability record point at the project without any version; the CPE is what NVD's product data uses. Keeping the file hash of the built library next to them settles any doubt about which binary shipped.

Which SBOM and vulnerability tools actually require it?

Two of the identifier's heaviest real-world users spell out the requirement in their own published specifications. CycloneDX's JSON Reference states, for the purl field on a component: "Asserts the identity of the component using package-url (purl). The purl, if specified, must be valid and conform to the specification defined at: https://github.com/package-url/purl-spec." The OSV (Open Source Vulnerability) schema, used across the broader open-source vulnerability-database ecosystem, defines the same field for an affected package: "The purl field is a string following the Package URL specification that identifies the package, without the @version component. This field is optional but recommended." In both cases, purl is the preferred cross-tool key precisely because a free-text package name cannot be resolved unambiguously across ecosystems, and a purl can.

Format Field Version inside the purl?
CycloneDX 1.6 components[].purl Yes, the component's exact version
CSAF 2.0 product_identification_helper.purl Allowed; every purl must pass validator test 6.1.13
OSV affected[].package.purl No; versions go in the separate range fields
CVE Record Format 5.2.0 affected[].packageURL No: "The Package URL MUST NOT include a version"

The CVE field is recent. The CVE Record Format added packageURL in version 5.2.0, released 29 October 2025, and in practice few records fill it in. A read-only query of the NVD CVE API on 10 November 2026, for CVEs published on 1 or 2 February 2026 (UTC), returned 183 records: 180 carried the assigning organisation's affected-product data, and 2 of those carried a packageURL. It is a two-day sample, not a census. For matching firmware components to CVEs today, the CPE is the identifier NVD's data actually provides, and the purl is what SBOM and OSV-based tools exchange.

What are the common pitfalls with purls in firmware SBOMs?

  • Types that are not in the registry. A string such as pkg:opkg/… has no type definition in the purl-spec types folder on 10 November 2026, so no validator can check it and other tools will not match it.
  • A version in a field that forbids one. CVE records and OSV want the purl without @version; the version goes in the range fields.
  • Case and encoding drift. pkg:deb/Debian/… and an unencoded @ in an npm scope produce strings that do not compare equal to the canonical form.
  • Unsorted or surplus qualifiers. Two tools that add qualifiers in different orders, or add build-only attributes, produce different strings for one package.
  • Distribution versions read as upstream versions. A deb or apk version such as 7.50.3-1 or 7.83.0-r0 carries the distribution's revision, and backported fixes mean the upstream CVE version range may not apply as written.
  • pkg:generic with nothing else. Without a checksum or download_url, a generic purl names a file, not a verifiable package.
  • Assuming a purl replaces the CPE for NVD matching. NVD's applicability data is CPE-based; a purl-only SBOM entry will not match it.

What is a workable approach for firmware and SBOM teams?

  1. Let your SBOM tooling generate purls automaticallywherever it has matched a component to a known package manager ecosystem — most CycloneDX and SPDX generators already do this for dependencies pulled through npm, PyPI, Maven, Cargo and similar registries.
  2. Expect gaps for firmware-specific componentsVendor SDKs, statically linked blobs and binary-analysis matches with no package-manager origin often have no clean purl type; our firmware SBOM guide covers what to record instead (hash, supplier name, confidence level) when a purl genuinely does not apply.
  3. Carry both a purl and a CPE where you can— vulnerability feeds and scanners vary in which one they match against, and the NTIA/CISA minimum-elements rules accept either as a valid Component Identifier.
  4. Pin the purl-spec or ECMA-427 version you're validating againstin your own tooling documentation, since the type registry is still actively maintained and new ecosystem types are added over time.
  5. Validate before you publishRun the SBOM through a purl-aware validator, or open it in the free SBOM viewer to see which components lack an identifier.

SoftWSP's firmware analysis writes the purl and CPE its extractor reports for each component into a CycloneDX 1.6 SBOM, then matches the components against NVD, CISA KEV, FIRST EPSS and CISA ICS advisories. Because NVD's applicability data is CPE-based, the CPE is what produces a CVE match; the purl travels with the SBOM for the customer's own tools. For OpenWrt packages that the extractor reports without a purl, SoftWSP fills in a pkg:openwrt/ identifier, which is not a registered purl type, so treat it as an internal reference. See device firmware security. For the regulatory side of why an SBOM needs a component identifier at all, start at SBOM Minimum Elements or CycloneDX vs SPDX; for how NVD's own backlog affects CPE data, see the NVD backlog guide.

This guide is general technical information, not a substitute for the current purl-spec, ECMA-427 or your own SBOM tooling's documentation.

Put this guide to work

Frequently asked questions

What is a Package URL (purl)?

A purl is, per the specification's own documentation at packageurl.org, "a standard URL-based syntax to identify software packages, independent from their ecosystem or distribution channel." The purl-spec project (maintained on GitHub by the package-url organization) describes its goal as providing "a simple, consistent, and flexible approach to identifying software packages with precision and clarity." Where a CVE or CPE identifies a product in the abstract, a purl identifies one specific package exactly the way its own ecosystem's package manager would: an npm package, a Maven artifact, a PyPI wheel, each addressed the same structured way.

What does a purl actually look like, component by component?

The general form is scheme:type/namespace/name@version?qualifiers#subpath, built from seven components per the official specification: scheme (always the constant "pkg"), type (required — the package ecosystem, for example maven, npm or pypi), namespace (optional, a name prefix such as an npm scope or Maven group ID), name (required, the package name itself), version (optional), qualifiers (optional, type-specific metadata such as a Maven classifier or a Docker image tag), and subpath (optional, a path within the package). An example the specification itself gives: pkg:npm/%40angular/[email protected] — type npm, namespace @angular (percent-encoded), name animation, version 12.3.1.

Is purl an official standard, or just a GitHub convention?

Both, now. It started and is still actively developed as an open specification on GitHub, but per packageurl.org's own announcement, "PURL was approved by Ecma International as ECMA-427 1st Edition in December 2025," formally titled the "Package-URL (PURL) specification," which Ecma states "defines the Package-URL (PURL) syntax for identifying software packages independently from their ecosystem or distribution channel." The GitHub repository remains the actively maintained reference implementation and type registry; ECMA-427 is the formal standards-body anchor a procurement or compliance document can cite.

How is a purl different from a CPE?

They solve related but distinct identification problems. A CPE (Common Platform Enumeration), NIST's structured identifier used throughout the National Vulnerability Database, names a product and version range in a vendor-defined taxonomy that can be ambiguous or require manual curation to match correctly. A purl instead gives the exact coordinate a package manager itself would use — ecosystem, namespace, name and version — which is deterministic and machine-resolvable because it mirrors how the package is actually published and fetched. Neither replaces the other: our [SBOM Minimum Elements guide](/guides/sbom-minimum-elements/) covers how the current CISA-led minimum-elements rules list a component identifier, naming CPE and PURL as the two common examples, as one of an SBOM's required data fields.

Which SBOM and vulnerability tools actually require it?

CycloneDX's own JSON specification states, for a component's purl field: "Asserts the identity of the component using package-url (purl). The purl, if specified, must be valid and conform to the specification defined at: https://github.com/package-url/purl-spec." The OSV (Open Source Vulnerability) schema used by Google's and the broader open-source vulnerability database ecosystem defines it the same way for affected packages: "The purl field is a string following the Package URL specification that identifies the package, without the @version component. This field is optional but recommended." Both treat purl as the preferred cross-tool identifier precisely because, unlike a free-text package name, it resolves to one specific package without ambiguity.

Do I need to generate purls myself, or do my SBOM tools already do it?

Most modern SBOM generators (for build-time tools that already know the exact package manager, namespace, name and version they pulled in) and most binary/firmware component-identification tools populate a purl automatically once they have matched a component to a known package. The practical risk is not generating one correctly for an open-source dependency pulled through a standard package manager — it is the long tail of vendor SDKs, statically linked blobs and firmware components with no package-manager origin at all, where no purl type cleanly applies and a CPE, hash, or a plainly stated "identifier unknown" is the correct answer instead.

Sources

  1. package-url/purl-spec — the official Package URL specification (GitHub)
  2. packageurl.org: PURL introduction and documentation
  3. Ecma International: ECMA-427, Package-URL (PURL) specification, 1st edition (December 2025)
  4. OWASP CycloneDX: JSON Reference v1.6 — components[].purl field definition
  5. OSV Schema: affected[].package.purl field definition
  6. CISA, NSA, FBI and 15 international partners: 2026 Minimum Elements for a Software Bill of Materials (SBOM), 29 July 2026
  7. package-url/purl-spec: how to build a PURL string (canonical form rules)
  8. package-url/purl-spec: PURL type definitions (types folder)
  9. package-url/purl-spec: PURL qualifiers guidance
  10. CVE Program: CVE Record Format v5.2.0 release (adds affected[].packageURL), 29 October 2025
  11. NIST NVD: CVE API 2.0 documentation
Was this guide helpful?

In this cluster

Package URL (purl): the SBOM component identifier, explained