Go back

Guide · CRAClock · EU Cyber Resilience Act

How to diff two SBOMs between releases

By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026

Short answer: Paste or select two SBOMs — the previous release's and the new one — and the diff classifies every component change: added, removed, or changed (version moved). Changes are prioritised so the risky ones surface first: a change the opt-in OSV check confirms as a known vulnerability, and downgrades (which can re-admit vulnerabilities fixed in later versions), rank above routine upgrades and additions; removals rank last because they shrink the attack surface. Without the OSV check, a suspicious change is labelled honestly as a version-change risk signal, not a confirmed vulnerability.

Generate your free SBOM + readiness pack →   Compare two releases free · See pricing

What is an SBOM diff?

An SBOM diff is a structured comparison of two software bills of materials — typically consecutive releases of the same product — that lists what entered, what left and what changed version, with a risk reading attached to each change. CRAClock's diff is a free public tool at /sbom-diff: it reads two CycloneDX documents, matches components by their package URL identity, classifies the movements, and orders them by priority so a reviewer sees the security-relevant changes first instead of an alphabetical swamp.

Why diffing beats eyeballing

Two SBOMs of a real product differ by dozens of lines, most of them noise: transitive bumps, tooling churn, version strings moving in both directions. A human scanning two JSON files for the three changes that matter will miss one of them eventually — the downgrade buried mid-file, the new component nobody remembers adding. The diff exists to make that review mechanical: components matched by purl, movements classified, and the list ordered by what a security reviewer would want to see first.

The deeper point is that dependency change is security change. Every added component is new attack surface with its own vulnerability future; every version movement crosses vulnerability boundaries in one direction or the other. A release process that reviews code diffs line by line but waves dependency diffs through unread has its scrutiny exactly inverted — the dependency diff is smaller, more consequential per line, and now, with tooling, just as readable.

The three change classes

Added: a component present in the new SBOM and absent from the old. Additions deserve a provenance question — who added this, and was it deliberate? — because the classic supply-chain surprise is the dependency nobody recalls choosing, pulled in transitively by something else. Removed: a component gone from the new SBOM. Removals generally reduce surface, which is why the diff ranks them last, but they still belong in the record: a removal explains why a previously tracked vulnerability no longer applies.

Changed: the same component at a different version. This is where the risk reading concentrates. An upgrade usually moves away from older vulnerabilities; a downgrade moves toward them — a version can re-enter ranges that later versions fixed, which is why downgrades are treated as risk signals in their own right. The diff does not merely list the movement; it grades it, because a release with forty upgrades and one downgrade should be reviewed as a release with one problem, not forty-one equivalent lines.

Risk signals versus confirmed vulnerabilities

The diff's most important honesty rule: a version change is a signal, not a verdict. A downgrade into an older version might land on a version with known vulnerabilities — or on a version that predates the vulnerable code entirely. CRAClock therefore labels such changes as version-change risk signals unless you enable the opt-in OSV check, which queries the changed versions against live OSV data. Only when that check matches does the change get reported as a known vulnerability — confirmed, with the record behind it.

This two-tier language protects both directions of error. Calling every downgrade a vulnerability manufactures false alarms that teach teams to ignore the tool. Calling none of them anything hides the one change in fifty that re-opens a patched hole. Signals get investigated; confirmations get remediated — and because the OSV check is opt-in per diff, the reviewer chooses when a quick signal scan is enough and when the release deserves the confirmed reading.

Priorities: P1 thinking for reviewers

The diff orders its output so attention lands in the right sequence: confirmed-vulnerable changes and downgrade signals first — the changes that can make the new release worse than the old — then other changed and added components, then removals. That ordering mirrors the remediation logic used across CRAClock (the P1-to-P4 prioritisation the scans side uses): act first on what is known-bad or possibly-regressing, then on what is merely new, then note what left.

For a small team the ordering is the feature. A release review that starts at the top of a prioritised diff and works down spends its limited attention where risk concentrates, and can stop when the remaining lines are removals and routine bumps. An alphabetical list spends the same attention uniformly and runs out somewhere in the middle — usually just before the one change that mattered.

Diffing as a release habit

The diff's value compounds when it runs every release. Stored SBOMs (per release, by serial) make any two states comparable — consecutive releases for routine review, or a customer's version against current when a vulnerability raises the 'which releases are affected?' question. CRAClock holds stored products' SBOMs on the paid plans so the diff can run against the inventory of record rather than files someone must find.

Adopt the habit at the same gate as the code review: no release ships with an unread diff. The review takes minutes; the artefact it produces — a classified, prioritised change list filed with the release — is simultaneously a security control, a change record for the conformity file, and the fastest answer the team will ever give to 'what changed in this version?'

Your 5-action checklist

  1. Generate the new release's SBOM and diff it against the previous release's before shipping — never after.
  2. Read the diff top-down: confirmed vulnerabilities and downgrade signals first, additions next, removals last.
  3. For every downgrade signal, enable the opt-in OSV check or investigate manually until it resolves to confirmed or cleared.
  4. Ask the provenance question for every added component: who added it, and was it deliberate?
  5. File the diff with the release's evidence, alongside the new SBOM's serial.

Work through the list in order. The free CRAClock job on the home page produces the SBOM, the dated checklist and the reporting runbook that several of these actions depend on.

Worked example: 43 changes, 1 real problem

A fictional vendor's release diff listed 43 changes: 6 added, 3 removed, 34 changed. Reading in priority order took four minutes to reach the only line that mattered: a JSON-parsing component had moved backwards, 5.4.0 to 5.3.1, as a side effect of a framework pin — a downgrade signal at the top of the list. The opt-in OSV check confirmed the destination version sat inside a known vulnerability's affected range: the signal became a confirmed finding, and the release was held for one dependency fix.

The remaining 42 lines — upgrades, two tooling additions, the removals — were reviewed in another six minutes and filed with the release. Without the diff's ordering, the same release review would have faced 43 undifferentiated lines; with it, the team's ten minutes landed exactly where the risk was, and the release that shipped was the fixed one.

Keep going

Frequently asked questions

Is the SBOM diff free to use?

Yes — /sbom-diff is a public free tool: paste two CycloneDX SBOMs and read the classified changes. Stored-product diffs (against the SBOMs CRAClock holds for your registered products) are part of the paid console's convenience, but the diff itself is a free job like the SBOM generator.

What exactly is a 'risk signal' versus a vulnerability?

A signal is a change whose shape is suspicious — above all a downgrade, which can re-admit vulnerabilities that later versions fixed. It becomes a confirmed known vulnerability only when the opt-in OSV check matches the changed version against live vulnerability data. The diff keeps the two words separate so neither false alarms nor silent passes occur.

Can I diff SBOMs from different products?

You can diff any two CycloneDX documents, but meaningful diffs compare states of the same product. Cross-product diffs mostly report the obvious — everything differs — while same-product release diffs isolate exactly what changed, which is the reviewable unit.

Why do removals rank last?

Because a removed component takes its vulnerabilities with it: removals shrink the attack surface. They are still listed — the record should explain why a previously tracked component no longer applies — but they should never consume review attention before a downgrade signal does.

What format must the two SBOMs be in?

CycloneDX JSON — the format CRAClock generates. Components are matched by package URL (purl), so any CycloneDX producer whose components carry purls will diff cleanly; components without versions can be listed but their movements cannot be risk-graded precisely, which is one more reason to pin.

CRAClock prepares drafts and evidence; regulatory submission is always performed by you in ENISA's Single Reporting Platform. This guide is general information about the duties CRAClock supports, not legal advice.