← Insights

SBOM: what is it, and is it mandatory under the CRA?

What a software bill of materials is, what the Cyber Resilience Act requires of it and how you create one.

19 November 2026 · Wais Abawi

Imagine a vulnerability is announced on a Monday morning in a widely used open-source library. Shortly afterwards a customer calls with one question: is this in our machines too?

At that moment you want to know within minutes which products and which versions are affected. Without an SBOM, that starts a search through source code and build scripts. With an SBOM, it is a query.

A bill of materials, but for software

An SBOM (software bill of materials) is a list of all software components in your product: your own code, open-source libraries, the operating system and their versions. Think of the bill of materials you already keep for hardware. An SBOM does the same for the software.

Yes, the CRA requires one

Under the Cyber Resilience Act, the manufacturer of a product with digital elements must draw up an SBOM, in a commonly used and machine-readable format, covering at least the top-level dependencies. The SBOM is part of the technical documentation. You do not have to make it public, but you must be able to provide it to a market surveillance authority.

The requirements apply to products you place on the market from 11 December 2027. That sounds a long way off. But if you start now, you will have the SBOM ready and can use it straight away for handling vulnerabilities, like the one on that Monday morning.

SPDX or CycloneDX: pick one

The two common formats are SPDX and CycloneDX. Both are machine-readable and supported by many tools. Pick one and use it consistently.

Keeping an SBOM useful

An SBOM put together once by hand will not help you with the next vulnerability. Four habits make the difference:

  1. Generate it automatically with every build. Manual lists go out of date immediately. Yocto can create an SPDX SBOM with every build; for other build systems there are tools that do the same.
  2. Keep one per released version. That way you know which components are in which firmware version in the field.
  3. Link it to vulnerability sources. Compare the SBOM regularly against databases of known vulnerabilities (CVEs).
  4. Include your own code and firmware. Microcontroller firmware and components from suppliers belong in it too.

How it works in Yocto

Yocto has the create-spdx class for this. It writes SPDX documents for the packages and the image with every build, including names, versions and licences. In recent Yocto releases this is enabled by default; in older releases you enable it with INHERIT += "create-spdx". Which SPDX version you get depends on the release.

For vulnerabilities there is the cve-check class. It compares the recipes in your build against the NVD database and writes a report per image, including a JSON version. In recent releases you use CVE_STATUS to record that a CVE is already patched or does not apply, with the reason. Newer releases also have a vex class that outputs this status in a form external tools can work with.

Also record the Yocto release and the commit of every layer for each build. BitBake prints them at the start of every build. Without that information, an SBOM is hard to reproduce later or to compare with a new version.

Not every match is a vulnerability

Matching an SBOM against CVE databases produces noise. A CVE refers to a product through a CPE name, and that does not always match the package name in your build. In Yocto you correct that with CVE_PRODUCT. Tools outside Yocto often work with PURLs, where the same kind of mismatch occurs. The result is missed matches and false positives, for example a vulnerability already fixed by a backport, or one in a part of the kernel you do not build.

So plan for triage: someone assesses every match and records the outcome with the reason. You will need that record when the customer calls on Monday morning.

Where does your product stand? You can make a first assessment with the free CRA check. This article is general information, not legal advice.

An SBOM for your product?

In the CRA quick scan we create a first SBOM and assess how you keep track of vulnerabilities.