A package URL, or purl, is a short text label that names one exact piece of reusable software.
This guide is for anyone who has seen "purl" in a software list or security report and wants a plain answer. You do not need to write code. If your business buys or builds software, the lists that describe it may use these labels.
In short
- Most apps are built from many smaller ready-made parts, called packages.
- A purl names a package in one standard format: where it comes from, its name and its version.
- Software ingredient lists and security databases use purls, so a tool can match a part to known problems.
- A purl only says what a part is. It does not prove the part is safe or genuine.
What you will learn
- Explain what a purl is in one sentence.
- Read the parts of a purl: type, name and version.
- Spot why a missing or vague purl makes security checks harder.
- Ask a supplier whether their software list includes purls.
- Ready-made building block (package)
- a bundle of code that other software reuses, often shared for free.
- Software ingredient list (SBOM)
- a list of the parts that make up a piece of software.
- Package label (purl)
- a standard text label that names one package and its version.
What is a package URL?
Think of the number printed on the back of a book, called an ISBN. Two books can share a title, but the number points to one book and one edition. A purl does the same job for software parts.
Modern apps reuse many small parts written by other people. These parts are called packages. They are shared through online stores for code, such as npm for JavaScript or PyPI for Python. A purl writes down which store a part came from, its name and its version, in one agreed format.[1]
The word "URL" can mislead. A purl looks a bit like a web address, but it starts with pkg: rather than https:. Its main job is to name a part, not to open a web page.[1]
Where the comparison stops working: a book number is handed out by one central body. Purls are built from details each code store already uses, so no single office hands them out.[1]
Why does it matter?
When a flaw is found in a popular package, people need to know quickly which of their apps use it. Clear labels make that search much faster than guessing from names.
If you buy software for your business
What could happen: a supplier says "we are not affected" by a new flaw, and you have no list to check that claim against.
Check this: ask whether the supplier can give you a software ingredient list with a purl for each part.
Next: SBOMs for Beginners
If you are new to IT or development work
What could happen: two parts with similar names get mixed up, and the wrong one is patched or blamed.
Check this: look at the type and version in the purl, not only the name.
If you manage a team that ships software
What could happen: your security tools cannot match parts to known flaws, so alerts are missed or wrong.
Check this: ask whether your build tools write purls into the ingredient lists they produce.
Next: Open Source Risk and Software Composition Analysis for Beginners
What does it look like?
Example only. All values are made up.
# part of a software ingredient list name: example-date-helper version: 0.0.1 purl: pkg:npm/[email protected] (1) purl: pkg:pypi/[email protected] (2) name: example-logger (3) purl: (blank)
- The label starts with
pkg:, then the store type (npm), the name, then@and the version. - A part from a different store (pypi). In a real file, this line would name a Python package and its exact version.
- A part with no purl. A tool has to guess what this is from its name alone.
Why this is risky: parts without a purl, or with no version, are easy to miss when a new flaw is announced.
The safer way: every part in the list carries a full purl, including its version, written by a tool rather than typed by hand.
How does it work?
A purl is built from up to seven parts, always in the same order.[1] Most everyday purls only use four of them.
- Start with
pkg:. Every purl begins with this fixed word.[1] - Add the type. This names the kind of code store, such as npm, pypi, maven or nuget.[1]
- Add the namespace if there is one. Some stores group packages under an owner or group name. This part is optional.[1]
- Add the name and version. The name is required. The version follows an
@sign and is optional, but without it you cannot tell which release you have.[1] - Add extra details only if needed. Qualifiers after a
?can add facts such as the computer type, and a subpath after a#can point inside the package.[1][2]
Tools then use the label. A software ingredient list, or SBOM, is a list of the parts that make up a piece of software.[5] Lists in the CycloneDX and SPDX formats can carry a purl for each part.[1][3] Open vulnerability databases, such as OSV, use purls to say which package a known flaw affects.[1][4] A checking tool compares the two lists and flags matches.
The format is published as an Ecma International standard, called ECMA-427.[1][2] The project says it has also been added to the format used for public flaw records, known as CVE records.[1]


A worked example
Darius Osei runs IT for a small online bookshop. The shop's website was built by an outside agency. One Monday, he reads that a popular free code part has a serious flaw.
His first question is simple. Does our website use it? He emails the agency and asks for the website's software ingredient list.
The list arrives the next day. It is a long file, but each part has a purl. Darius searches the file for the name of the faulty part. He finds one line with that name and a version number after the @ sign.
He then opens the public notice about the flaw. It lists the affected package with its type, name and the range of affected versions. The type and name match the purl in his list. The version in his list falls inside the affected range.
Darius sends the agency the line he found and asks them to update that part. A week later they send a new list. The purl now shows a newer version that the notice says is fixed.
Two other parts in the first list had no purl at all, only short names. Darius asks the agency to add purls for those too. Next time, he wants to check the whole list in one search, not by guesswork.
He also notes one limit. The purl told him what the part is. It did not prove the code came from the right place. For that, he asks the agency what checks they run before adding new parts.
Myths and mistakes
| What people think | What is true |
|---|---|
| A purl is a web link you can click. | It looks like one, but it starts with pkg:. Its job is to name a part, not to open a page. |
| The package name is enough. | Different code stores can hold parts with the same name. The type and version are needed to be sure. |
| A part with a purl is safe. | A purl only says what the part is. Safety needs separate checks, such as flaw scanning and source checks. |
| The version is optional, so it can be left out. | The format allows it, but without a version a tool cannot tell whether you have a fixed release. |
| Purls are only for developers. | Buyers can ask for them too. They make a supplier's ingredient list much easier to check. |
What can I do this week?
- Ask one key software supplier whether they can share a software ingredient list for their product.
- Open the list and check how many parts have a purl with a version.
- Ask your developers whether your build tools write purls into the lists they produce.
- Pick one well-known part and practise reading its purl: type, name and version.
Checklist
- We know which of our main software products come with an ingredient list.
- Each part in those lists has a purl.
- Each purl includes a version.
- Purls are written by tools, not typed by hand.
- Our security tools can read purls and match them to flaw databases.
- We know who to ask when a part has no purl.
- We treat a purl as a name only, and check where parts come from separately.
Common questions
Is a purl the same as an SBOM?
No. An SBOM is the whole ingredient list for a piece of software. A purl is the label on one line of that list. A good SBOM gives each part a purl, so tools can match parts to known flaws without guessing from names.
Who decides the format?
An open project, Package-URL, wrote the format, and it is now published as the Ecma International standard ECMA-427. Each code store type has its own short rules, for example on whether names are case-sensitive. Tools are expected to follow those rules.
Do I need to write purls by hand?
Usually not. Tools that build software ingredient lists normally create purls from the details the code store already records. Hand-typed labels are more likely to contain mistakes, such as a wrong type or a missing version.
Does a purl tell me if a part is safe?
No. A purl names a part and its version. You then compare it with a vulnerability database to see whether known flaws affect that version. Whether the code itself is genuine needs other checks, such as checking where it was built.
Why does the version matter so much?
Flaws usually affect some releases and are fixed in later ones. Without the version, a tool can only say "this part might be affected". With it, the tool can say whether your copy falls inside the affected range.
Where next?
Ready for the detail? Read the practitioner guide: SBOM Guide. It goes further into SBOM formats, minimum elements and how teams match component identifiers such as purls to vulnerability data.
Also useful:
- SBOMs for Beginners
- Package Managers for Beginners
- Dependency Updates for Beginners
- Malicious Packages for Beginners
Related NHI Mgmt Group resources: SBOM operations, Software Composition Analysis (SCA) Guide and OWASP Dependency-Track Guide.
Key terms
- PURL
- A package URL: a standard label that names a software package using details from its code store, such as type, name and version.
- SBOM
- A software bill of materials: a list of the parts and dependencies that make up a piece of software.
- Package manager
- Software that fetches, installs, updates and tracks the code parts an app depends on.
- Software composition analysis
- Checking the parts and packages an app uses to find known flaws in third-party code.
- Vulnerability
- A flaw or weakness in code, settings or design that someone could abuse.
- CVE
- A standard public identifier for a known software flaw.
Sources and further reading
- Package-URL project, "purl-spec: Package-URL specification", GitHub. https://github.com/package-url/purl-spec (accessed 2 Dec 2026).
- Ecma International TC54, "ECMA-427: Package-URL (PURL) specification", draft 2nd edition, 2026. https://ecma-tc54.github.io/ECMA-427/ (accessed 2 Dec 2026).
- OWASP CycloneDX, "CycloneDX v1.6 JSON Reference", component purl field. https://cyclonedx.org/docs/1.6/json/ (accessed 2 Dec 2026).
- OpenSSF, "Open Source Vulnerability format" (OSV schema), affected package purl field. https://ossf.github.io/osv-schema/ (accessed 2 Dec 2026).
- CISA, "Software Bill of Materials (SBOM)". https://www.cisa.gov/sbom (accessed 2 Dec 2026).