SBOM Signal

Guide · Electron apps

SBOM for Electron apps

Electron apps ship Chromium and Node.js inside the electron package. That is where many of the serious vulnerabilities are, and it is the one component a default SBOM tends to leave out.

The pitfall: electron is a devDependency

Most Electron projects declare electron in devDependencies, because the packager bundles it into the app. Syft leaves devDependencies out by default, so the SBOM lists your libraries but not Electron. We tested this with Syft 1.57.2: a project with electron 28.0.0 as a devDependency produced an SBOM without it. With the setting below, it is included. On 28 November 2026, OSV listed 46 advisories for electron 28.0.0, published under the npm package name, so an SBOM without it misses all of them.

Make the SBOM

# include devDependencies so electron itself is listed
SYFT_JAVASCRIPT_INCLUDE_DEV_DEPENDENCIES=true syft dir:. -o cyclonedx-json=sbom.cdx.json

This also includes build tools from devDependencies (bundlers, test frameworks). That over-reports a little, which is the safer side for reporting. In GitHub Actions, set the same variable in the env: of the step that runs anchore/sbom-action; see the GitHub Actions guide.

Check the result: the SBOM must contain pkg:npm/electron@ with the version you ship.

Every version you still support

Users keep running older versions of desktop apps. Under the CRA you handle vulnerabilities for every version during its support period, at least five years unless the product is expected to be used for less (Art. 13(8)). Keep one SBOM per release, not only for the latest. More on the support period.

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.