A customer sends a security questionnaire with one line that matters: “Provide an SBOM in SPDX or CycloneDX format.” Your build tool can write either. So which one do you send, and does the choice change what the recipient learns about your software?

Short answer: both formats can describe the same package, and neither is “the official one” for every purpose. The differences that matter are the version number, how many fields each schema forces you to fill, and what else the recipient wants the file to carry, such as license data or exploitability statements. All spec details below were checked on November 26, 2026.

Where each format stands today

SPDX CycloneDX
Current version on the project’s site 3.0 listed as current, with 3.0.1 published as a patch release; 2.3 is still listed 1.7
Standards body The SPDX site calls it ISO/IEC 5962:2021 ECMA-424, 2nd edition, December 2025, which defines v1.7
Release date given Not stated on the pages read October 21, 2025 for 1.7
Serializations 3.0.1: JSON-LD, Turtle, N-Triples, RDF/XML JSON, XML and Protocol Buffers
Scope beyond software packages 3.x adds data sets, AI models and build information Lists SBOM, SaaSBOM, HBOM, CBOM and VEX among its BOM types

Two details in that table cause most of the confusion.

First, “SPDX” is not one document shape. SPDX 3.0.1 is a patch release that fixes documentation and minor model errors after 3.0.0, but the jump from 2.3 to 3.x is large: the model expanded beyond software, security and licensing, and 3.0.1 JSON-LD files must use a shared context file (https://spdx.org/rdf/3.0.1/spdx-context.jsonld). A file labeled SPDX-2.3 and a file that points at that context are different things to a parser. When someone asks for “SPDX,” ask which version.

Second, CycloneDX is one model that can carry several kinds of statement. Its overview says the format suits both vulnerability disclosure and VEX use cases, so a team can ship component data and exploitability statements in the same format family. SPDX 3.x has a security area in its model as well, but the sources above do not show which tools use it, so check your consumer before relying on it.

One package, written both ways

Take one real npm package, lodash 4.17.21, and write the smallest valid inventory that includes its Package URL and license. First CycloneDX 1.7:

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.7",
  "components": [
    {
      "type": "library",
      "name": "lodash",
      "version": "4.17.21",
      "purl": "pkg:npm/lodash@4.17.21",
      "licenses": [{ "license": { "id": "MIT" } }]
    }
  ]
}

Now the same package in SPDX 2.3 JSON:

{
  "spdxVersion": "SPDX-2.3",
  "dataLicense": "CC0-1.0",
  "SPDXID": "SPDXRef-DOCUMENT",
  "name": "lodash-example",
  "documentNamespace": "https://example.org/spdx/lodash-example-1",
  "creationInfo": {
    "created": "2026-11-26T08:00:00Z",
    "creators": ["Tool: example-generator-1.0"]
  },
  "packages": [
    {
      "SPDXID": "SPDXRef-Package-lodash",
      "name": "lodash",
      "versionInfo": "4.17.21",
      "downloadLocation": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
      "licenseDeclared": "MIT",
      "externalRefs": [
        {
          "referenceCategory": "PACKAGE-MANAGER",
          "referenceType": "purl",
          "referenceLocator": "pkg:npm/lodash@4.17.21"
        }
      ]
    }
  ]
}

Both examples parse as JSON. The tool name and namespace in the SPDX example are placeholders, not a real generator.

How many fields the spec forces on you

Count what each schema marks as mandatory for this one-package file:

Fewer mandatory fields does not mean a better SBOM. A valid CycloneDX file with 4 fields would say almost nothing about provenance. The 2026 CISA update asks for more than either schema forces, including component hash algorithms, component licenses, the generation tool name, generation context and a signature field, and my earlier note on dependency updates covers what a build-bound SBOM should contain. The point of the count is practical: the schema will let you ship a thin file in either format, so a requirement document, not the validator, has to say which optional fields are really required.

Fields that do not map one to one

A converter has to invent or drop values where the schemas disagree:

What the recipient wants CycloneDX 1.7 SPDX 2.3
Where the package came from purl (optional) downloadLocation is mandatory; the value can be NOASSERTION or NONE when unknown
Hash of the shipped file hashes[] with alg and content; SHA-256, SHA-512, BLAKE3 and others A checksum entry on the package or file
License licenses[] with an SPDX license id, a name, or an expression; an acknowledgement of “declared” or “concluded” Separate declared and concluded license fields, both optional in 2.3
Who supplied it supplier object (optional) supplier (optional)
Internal reference bom-ref, unique inside the BOM SPDXID

The first row is the one that bites. Converting CycloneDX to SPDX 2.3 means every package needs a downloadLocation, and a CycloneDX component rarely carries one. A converter that writes NOASSERTION produces a valid file that conceals the gap, and a recipient who counts valid packages will not see it.

How to choose

Work down this list and stop at the first line that applies.

  1. A contract, regulator or customer names a format and version. Send that, exactly. “SPDX” alone is not enough; get the version in writing.
  2. The file mainly has to prove license compliance. SPDX has a profile built for it: the Lite annex described above, and SPDX is the format whose specification page points to an ISO standard.
  3. You want component data and exploitability statements in one format family. CycloneDX documents VEX use in the same specification as the component list.
  4. The file will describe data sets, AI models or build steps. SPDX 3.x models those directly, and CycloneDX lists AI and ML component types too (its JSON reference has a machine-learning-model component type). Check which one your consumer’s tooling reads.
  5. None of the above. Pick the one your build tool produces most completely, then check the output against the field table above before sending it.

Whichever you pick, record the format name and version beside the artifact it describes. An unlabeled sbom.json forces the reader to guess.

Reporting & Sources

Checked November 26, 2026:

The two JSON samples were written for this article and checked for valid JSON syntax; they were not run through a vendor validator.