Guide · CRAClock · EU Cyber Resilience Act
Should devDependencies be included in an SBOM?
By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026
Short answer: Yes. Your build and test toolchain is part of your product's real dependency surface: a compromised devDependency can insert code into the artefact you ship even though it never ships itself. CRAClock's parsers include them — package.json devDependencies and Pipfile.lock develop entries — with scope recorded, so scans and diffs see them while triage can grade them differently from runtime components. Excluding them would make the SBOM tidier and the product less safe.
Generate your free SBOM + readiness pack → Compare two releases free · See pricing
What is development dependencies in the SBOM?
Development dependencies are the packages a project uses to build, test and lint itself rather than to run: the devDependencies block in package.json and the develop section in Pipfile.lock. In a CycloneDX SBOM they appear as components whose scope marks them as development rather than required. CRAClock includes them by design, because the SBOM's job is to enumerate what the product depends on — and a shipped artefact depends on its build chain as surely as on its runtime libraries.
The build chain is an attack surface
The naive SBOM includes only what ships. The flaw in that picture is causal: what ships is produced by the build, and the build runs the devDependencies with full access to the source, the environment and often the signing credentials. A malicious or compromised build tool does not need to ship itself to compromise the product — it needs one build. Supply-chain incidents in the industry have repeatedly entered through exactly this door: the test runner, the linter plugin, the build script's helper.
An inventory that excludes the build chain therefore excludes the components with the most privileged position in your process. The CRA's vulnerability-handling lens is concerned with the product's security as a whole, and a manufacturer who cannot list their build tools cannot claim to know what their product is made from — only what it is made of, which is a smaller and less useful claim.
Scope: the label that makes inclusion practical
Inclusion does not mean identical treatment. CycloneDX components carry scope, and CRAClock's parsers set it from the source: runtime dependencies as required, devDependencies and develop-section entries as development scope. Consumers of the SBOM — scans, diffs, reviewers — can then grade correctly: a vulnerability in a runtime component is a product exposure demanding the remediation clock; the same severity in a test tool is a pipeline exposure demanding a prompt but proportionate fix.
Without the scope label, inclusion would manufacture alert fatigue: every build-tool CVE would present as a product emergency, and teams would learn to ignore the scanner — the worst outcome in the entire system. With the label, the SBOM tells the truth at two resolutions at once: everything is listed, and the listing itself says how much each item matters. That is the design pattern to copy in your own processes around the SBOM.
What the parsers actually do
For package.json, CRAClock walks both the dependencies and devDependencies objects, creating a component per entry; the devDependencies entries carry development scope into the SBOM. Version rules are unchanged: only exact specifiers yield a version, so a ranged devDependency is inventoried but unversioned until pinned — the pinning discipline applies to the build set exactly as to the runtime set, because an unversioned build tool is unmatchable for the same reason.
For Pipfile.lock, the lockfile's two sections map the same way: default entries are the runtime set, develop entries the development set, all with locked exact versions. Python teams sometimes treat the develop section as scratch space; the SBOM disagrees, listing test frameworks, linters and dev servers as the components they are. The first lockfile SBOM a team reads is often their first complete picture of what their pipeline actually runs.
Triage rules for development-scope findings
Grade development findings by reach, not by label alone. A vulnerable build tool that executes arbitrary code during CI — which is most of them — can poison artefacts, so its fix belongs in days, not quarters. A vulnerable test-only utility isolated from the build path is a lesser exposure. The questions that grade them: does it run in the pipeline that produces releases, does it handle credentials or signing, does it process untrusted input? Scope gives the first sort; these questions give the order within it.
Keep the remediation record for development findings with the same discipline as runtime ones — the conformity story is stronger for it, and the diff between release SBOMs includes the build set's movements, so a silent downgrade of a build tool (a classic injection move) shows up in the same review as any other downgrade signal.
The cultural shift: pipelines are product too
Adopting the scoped-inclusion view changes how a team treats its toolchain: versions pinned, updates reviewed, the build environment's components counted in the monthly rhythm. That is a real cultural step for small teams used to treating dev tooling as furniture. The CRA programme rewards it disproportionately, because so many of its artefacts — SBOM, scans, diffs — become more truthful the moment the build chain joins the inventory.
Start with sight, not surgery: generate the SBOM, read the development set with your own eyes, and count how many of its components you recognise. The recognition gap is the finding. Closing it takes one pass of pinning and one standing rule — the build set is reviewed like the runtime set — after which the scope labels do the ongoing work of keeping the two apart without keeping either invisible.
Your 5-action checklist
- Generate your SBOM and read the development set separately: count it, and note every component you do not recognise.
- Pin development dependencies to exact versions with the same discipline as runtime ones.
- Grade development findings by pipeline reach: release-building, credential-handling and input-processing tools first.
- Include the build set in the per-release SBOM diff review — a build-tool downgrade is a signal like any other.
- Record the scope convention in your documentation so customers reading the SBOM understand the labels.
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: the test tool that outranked the product bug
A fictional vendor's first full scan returned two findings on day one: a medium-severity vulnerability in a runtime library, and a high-severity one in a develop-section test tool. The scoped SBOM let the team grade them in one glance — but the grading surprised them. The runtime issue sat behind an unused code path; the test tool executed inside the release pipeline, with access to the build environment. By reach, the development finding was the more dangerous of the two, and it was fixed first, the same day, by a lock update.
The old process would never have seen it: the previous inventory covered runtime only, and the pipeline had never been scanned at all. The vendor's retrospective line became a team rule — the build set is scanned, pinned and diffed like the runtime set, because the artefact's integrity is only as strong as the weakest tool that touched it.
Keep going
- Free SBOM + readiness pack — paste a manifest, get the CycloneDX SBOM, checklist and runbook.
- SBOM change-to-impact analysis — diff two releases before you ship.
- CRAClock pricing — Free, Pro $29/month and Team $79/month.
- All CRAClock guides — the full library for small EU software vendors.
- CRAClock console — products, scans, incidents, vault and trust pages.
- How to generate an SBOM from package.json
- How to generate an SBOM from Pipfile.lock
- What is an SBOM and why does the CRA require one?
- What are the limitations of a manifest-based SBOM?
- How does live CVE monitoring work for a small vendor's products?
- What is a package URL (purl) in an SBOM?
- Why generate a fresh SBOM for every release?
Frequently asked questions
If devDependencies don't ship, why do they matter for CRA?
Because the product's security depends on its build chain: a compromised build tool can alter the shipped artefact or steal the credentials that sign it. The CRA's vulnerability-handling duty is about the product's security in the real world, and the inventory that supports it should cover what the product depends on — runtime and build alike, labelled by scope.
Will including devDependencies flood us with alerts?
Scope exists precisely to prevent that. Scans and diffs can present runtime and development findings in separate grades, and triage rules differ by reach. The flood risk comes from unlabelled inclusion; CRAClock's parsers label from the source blocks automatically.
Do development components need pinning too?
Yes — an unversioned component cannot be matched against vulnerability data regardless of its scope. Pipfile.lock develop entries arrive pinned by construction; package.json devDependencies need exact specifiers or lockfile resolution, like their runtime counterparts.
Should the SBOM we share with customers include the dev set?
The full SBOM is the honest artefact, and the scope labels explain the dev set's role to any competent reader. Sharing the complete, scoped document beats curating a partial one: the customer's tooling will grade by scope itself, and a visibly complete inventory builds more trust than a trimmed one.
What about system tools — compilers, CI runners themselves?
They sit at the boundary this guide's sibling (SBOM limitations) describes: name the build environment as a chosen artefact with its own update story, document it alongside the SBOM, and keep the application SBOM's scope clean. The principle is unchanged — nothing privileged stays invisible; only the recording mechanism differs.
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.