CRAForge EU CRA Compliance Workbench

CRAForge Knowledge Base · Ecosystems

Generating EU CRA SBOMs from npm package-lock.json

npm lockfiles already carry SHA-512 SRI integrity digests and exact nested dependency versions — ideal inputs for BSI TR-03183-2 compilation.

Category: Ecosystems Standards: BSI TR-03183-2 §5.2.2 · Package URL (pkg:npm) · CRA Annex I Part II (1) Auf Deutsch lesen

Actionable Engineering Checklist

  1. Use lockfileVersion 2 or 3 so resolved URLs and SHA-512 integrity fields are present for every package.
  2. Convert SRI base64 SHA-512 strings into lowercase 128-character hex digests attached to distribution externalReferences.
  3. Encode scoped packages properly as pkg:npm/%40scope/name@version per PURL spec.
  4. Scan resolved versions against OSV.dev + CISA KEV + ENISA EUVD (catching medium-CVSS active exploits such as Vite CVE-2025-31125).

Regulatory & Technical Specification Matrix

Compliance Dimension Statutory Specification & CRAForge Implementation
Legal & Standard Basis BSI TR-03183-2 §5.2.2 · Package URL (pkg:npm) · CRA Annex I Part II (1)
Accepted Formats CycloneDX 1.5 / 1.6 (JSON, XML) · SPDX 2.3 / 3.0.1 (JSON-LD) · package-lock.json · Cargo.lock · requirements.txt · poetry.lock · go.sum
Vulnerability Feeds OSV.dev + ENISA EUVD (exploited) + CISA KEV — Article 14 24h watchdog triggers regardless of CVSS score
Key CRA Deadlines Article 14 reporting in force since 2026-09-11 · Full CE / Annex VII compliance mandatory 2027-12-11
CI/CD Gate Command npx craforge convert ./package-lock.json --to cyclonedx-1.6-json -o ./sbom.cdx.json

Automation & CLI Command

$ npx craforge convert ./package-lock.json --to cyclonedx-1.6-json -o ./sbom.cdx.json
CRAForge parses 1,500+ package npm monorepo lockfiles in under 100 ms and extracts every nested package version accurately.

Frequently Asked Questions

Are devDependencies excluded or flagged?

CRAForge preserves lockfile scope metadata so runtime vs dev-only components can be audited transparently.

Does npm integrity satisfy BSI SHA-512?

Yes, once decoded from base64 SRI into hex and attached to the component distribution externalReference.

Related EU CRA Engineering Guides

Validate your SBOM against BSI TR-03183-2 & ENISA EUVD now
Zero signup · Zero server retention in EU memory · Instant clause-by-clause diff.
Open Free Validator