CycloneDX or SPDX for a CRA technical file
Both satisfy "commonly used and machine-readable", so the choice is about tooling and what you need the file to do. The honest comparison, the fields that decide whether an SBOM is usable, and why one format wins for CRA work.
Rony Shulkin · Software Engineer

On this page
If you want a recommendation rather than a comparison: CycloneDX, unless you already have SPDX in production or your main driver is licence compliance.
Both formats satisfy the CRA's requirement for a commonly used machine-readable format. Neither is named in the regulation. The reason to prefer CycloneDX for CRA work is that it carries VEX natively, so the vulnerability-status side of the obligation lives in the same ecosystem as the component inventory. That is a workflow argument, not a quality argument — SPDX is an excellent format and the better choice for a licence-first programme.
What they are
| CycloneDX | SPDX | |
|---|---|---|
| Steward | OWASP | Linux Foundation |
| Standardisation | Version 1.6 ratified as Ecma-424 in 2024 | Version 2.2.1 is ISO/IEC 5962:2021 |
| Current line | 1.7 | 3.x |
| Original purpose | Security and supply chain | Licence compliance |
| Serialisations | JSON, XML, Protocol Buffers | JSON, YAML, RDF, tag-value, spreadsheet |
| VEX | Native | Separate, via the security profile in 3.x |
| Other inventories | Hardware, services, machine learning, cryptographic | Profiles for build, AI, dataset, licensing |
Note the asymmetry in standardisation, because it gets quoted carelessly in both directions. SPDX's ISO recognition attaches to the 2.x line — ISO/IEC 5962:2021 is SPDX 2.2.1, not SPDX 3.0. CycloneDX's Ecma-424 ratification covers 1.6. So "SPDX is the ISO standard" and "CycloneDX is an Ecma standard" are both true of specific older versions, and neither tells you much about the version you would actually emit.
What national guidance says
The regulation names no format. Germany's BSI technical guideline TR-03183-2 does: its more recent versions call for CycloneDX 1.6 or higher, or SPDX 3.0.1 or higher, in JSON or XML.
This is the most useful external anchor available, and it is worth knowing three things about it. It is a national technical guideline, not EU law. It confers no presumption of CRA conformity. And it names both formats, so it does not settle the choice — it settles the version floor, which is more practically helpful. Check the current version of the guideline directly; it has moved more than once.
The fields that actually matter
Format choice is less important than whether the document carries the fields that make it usable. In practice four things decide that, and both formats support all four — so the question is whether your generator populates them.
A resolvable component identifier. A package URL (pkg:npm/lodash@4.17.21) or a CPE. Without one, matching against a vulnerability feed is string-guessing. An SBOM whose components are named openssl with version 1.1 cannot be joined to anything, and this is the most common real defect in generated SBOMs.
A cryptographic hash of the component. This is what lets you assert the SBOM describes the artefact you shipped rather than something that resembles it.
Dependency relationships, not a flat list. Both formats express the graph. A flat list of 1,800 components tells you what is present; the graph tells you whether a vulnerable component is reachable from your code or is a build-time-only dependency. This distinction is the basis of most legitimate "not affected" claims — see VEX.
A statement of what the document describes. The product, the version, the build. An SBOM with no subject identity is unusable in an Article 14 situation, which is the situation it exists for.
If your current generator emits package URLs, hashes, relationships and a subject, the format you chose is a detail. If it does not, changing format will not help.
The case for CycloneDX
VEX is in the same ecosystem. CycloneDX includes a vulnerability model and VEX, so your "not affected because the vulnerable code path is unreachable" assertions use the same schema, tooling and identifiers as the inventory. Under SPDX you combine the SBOM with CSAF or OpenVEX documents, which works but is two toolchains.
It was designed for this. CycloneDX started from security use cases, and the fields you need for CRA work — vulnerabilities, services, external references, pedigree — are first-class rather than extensions.
The xBOM family is coherent. Hardware, cryptographic and machine-learning inventories share the format and tooling. If you end up needing a CBOM or HBOM, that is a profile rather than a new project.
Smaller documents. In practice CycloneDX JSON is more compact for the same component set, which matters when you are storing one per build for ten years. Not decisive, but not nothing.
The case for SPDX
Licence compliance is better served. The SPDX licence list and identifier syntax are the lingua franca of open-source licence work. If your SBOM programme is driven by licence obligations and the CRA is the secondary driver, SPDX is the right centre of gravity.
The ISO lineage matters in some procurement. Public sector and regulated-industry buyers sometimes ask for the ISO-recognised format by name. That is a commercial reason, and commercial reasons are real reasons.
You may already have it. If your build already emits SPDX and your tooling consumes it, the cost of switching exceeds the benefit. Add a CSAF or OpenVEX practice beside it instead.
Profiles in 3.x are genuinely good. The separation into core, software, security, licensing, build, AI and dataset profiles is a cleaner model than extending one schema, and it has aged well.
What not to do
Do not emit both. It doubles the surface, and the two documents drift. If a customer asks for the format you do not use, convert on request — both ecosystems have converters, and the conversion is lossy in predictable ways you can document.
Do not hand-roll a format. "Commonly used" rules out your own JSON schema, however well designed. This sounds obvious and it happens, usually because an internal inventory already existed.
Do not treat the format as the project. The hard parts of SBOM work are generating from the artefact, keeping one per release, making identifiers resolvable, and being able to query ten years of archive. None of those is affected by the format choice. What the CRA actually asks of your SBOM and build-time versus binary generation are where the real work is.
A workable setup
What I would run, concretely:
- CycloneDX 1.6 or later, JSON. Meets the BSI version floor, carries VEX, broad tool support.
- Generated from the built artefact in CI, with a source-tree SBOM as a secondary input where the artefact scan is weak.
- Stored as
releases/<version>/sbom.cdx.jsonnext to the binary, with the build identifier in the metadata. - Package URLs on every component, enforced — a CI check that fails the build if more than a small fraction of components lack one. This is the single highest-value quality gate in the pipeline.
- A CycloneDX VEX document per advisory, referencing the SBOM by its serial number.
The package URL check is the recommendation I would push hardest. It is five lines of pipeline code, it fails fast, and it prevents the most common way an SBOM programme produces documents nobody can use.
Primary references: the CycloneDX and SPDX specifications themselves, both freely available; Ecma-424 for CycloneDX 1.6; ISO/IEC 5962:2021 for SPDX 2.2.1. The CRA's own requirement is one clause — Annex I Part II point 1 of Regulation (EU) 2024/2847 — and it names neither format. Version numbers in this post were accurate when written and move; check the specification sites.