SBOM Signal

Guide · npm packages and Node.js apps

SBOM for npm packages and Node.js apps

For Node.js the lockfile is the most precise source: it pins every package, including the dependencies of your dependencies.

Make the SBOM

syft dir:. -o cyclonedx-json=sbom.cdx.json

Syft reads package-lock.json, yarn.lock and pnpm-lock.yaml. Without installing anything you can also use our lockfile converter for package-lock.json, which matched Syft on OWASP NodeGoat (380 of 380 components).

What to include

For a library published to npm, users install your dependencies, not your devDependencies, so Syft's default is right. For an app that bundles everything it ships (for example with a bundler or Electron), include devDependencies that end up in the product: SYFT_JAVASCRIPT_INCLUDE_DEV_DEPENDENCIES=true.

Free and open-source libraries

Free and open-source software that its maker does not monetise is not supplied in the course of a commercial activity and is generally outside the manufacturer obligations (recital 18). A company that sells a product built on your library is responsible for its own product. Check your case with the applicability check.

Every release, automatically

Build the SBOM in your CI on every release: GitHub Actions · GitLab CI · Bitbucket Pipelines · Azure DevOps.

Why an SBOM matters for CRA Article 14

Since 11 September 2026, a manufacturer that becomes aware of an actively exploited vulnerability in its product must send an early warning to ENISA within 24 hours and a notification within 72 hours (Regulation (EU) 2024/2847, Art. 14). You can only react in time if you know which components and versions each release contains. That list is the SBOM. From 11 December 2027 an SBOM is also part of the required documentation (Annex I, Part II).

More: the reporting deadlines · what an SBOM is · does the CRA apply to you?

Next

  • Check it now: drop the SBOM into the free exploited check to see if anything in it is being attacked today.
  • Keep watching every release: SBOM Signal checks every supported version around the clock and alerts you with the deadlines and ENISA drafts ready. See the panel · Free pilot

Not legal advice. Commands checked with Syft 1.57.2 on 28 November 2026.