CVE-2026-102677: Electron Sandboxed Preload Code Cache Can Vulnerability

HIGH
Advisory Identifier: GHSA-qmv3-fv6v-rmhq
CVSS 7.8
CWE-20 CWE-345
Published
Advisory Summary

CVE-2026-102677 is a HIGH (CVSS 7.8) sandboxed preload code cache can vulnerability (CWE-20: Improper Input Validation) affecting Electron libraries in the npm ecosystem. The issue involves sandboxed preload code cache can be poisoned by a compromised renderer. Remediation is available by upgrading affected packages to version 42.10.0, 43.5.0, 44.0.0-beta.6.

CVE-2026-102677 at a Glance

CVE Identifier CVE-2026-102677
GHSA Identifier GHSA-qmv3-fv6v-rmhq
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Electron
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-102677

To remediate this vulnerability, upgrade all affected Electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

electron fixed: 42.10.0
npm install electron@42.10.0
electron fixed: 43.5.0
npm install electron@43.5.0
electron fixed: 44.0.0-beta.6
npm install electron@44.0.0-beta.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls electron

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-102677, inspect your project dependencies using npm:

npm ls electron

Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 42.10.0), your application is affected.

Note: The npm ls electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The cache Electron keeps for sandboxed preload scripts did not verify that a cached entry matched the preload it was served for. A compromised renderer could use this to run its own code in the preload context on a later load. Apps are only affected if they load untrusted content. Apps that do not load untrusted content are not affected. ### Workarounds There are no app side workarounds, you must update to a patched version of Electron. ### Fixed Versions * `44.0.0-beta.6` * `43.5.0 ` * `42.10.0` ### For more information If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)

CVE-2026-102677 Affected Electron Versions

3 component(s)
Fixed Versions:
42.10.043.5.044.0.0-beta.6
Product / Package Ecosystem Affected Versions Fixed Version
electron
npm
≥ 42.3.3
< 42.10.0
42.10.0
electron
npm
≥ 43.0.0-beta.1
< 43.5.0
43.5.0
electron
npm
≥ 44.0.0-alpha.1
< 44.0.0-beta.6
44.0.0-beta.6

References

Frequently Asked Questions

What is CVE-2026-102677?
CVE-2026-102677 is a security vulnerability in Electron involving Sandboxed preload code cache can be poisoned by a compromised renderer under CWE-20: Improper Input Validation.
Which Electron versions are affected?
Affected versions include releases prior to 42.10.0, 43.5.0, 44.0.0-beta.6 across affected packages: electron.
What version fixes CVE-2026-102677?
Upgrading to 42.10.0, 43.5.0, 44.0.0-beta.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electron affected?
Yes, electron is affected in releases prior to 42.10.0, 43.5.0, 44.0.0-beta.6. Upgrade your dependency to 42.10.0, 43.5.0, 44.0.0-beta.6 or later.
What is the CVSS score of CVE-2026-102677?
CVE-2026-102677 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-102677?
CVE-2026-102677 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2026-102677?
Run the dependency tree command: 'npm ls electron'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qmv3-fv6v-rmhq",
  "modified" : "2026-09-29T18:02:01Z",
  "published" : "2026-09-29T18:02:01Z",
  "aliases" : [ "CVE-2026-102677" ],
  "summary" : "Electron: Sandboxed preload code cache can be poisoned by a compromised renderer",
  "details" : "### Impact\n\nThe cache Electron keeps for sandboxed preload scripts did not verify that a cached entry matched the preload it was served for. A compromised renderer could use this to run its own code in the preload context on a later load.\n\nApps are only affected if they load untrusted content. Apps that do not load untrusted content are not affected.\n\n### Workarounds\n\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n\n* `44.0.0-beta.6`\n* `43.5.0 `\n* `42.10.0`\n\n### For more information\n\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "42.3.3"
      }, {
        "fixed" : "42.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "43.0.0-beta.1"
      }, {
        "fixed" : "43.5.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "44.0.0-alpha.1"
      }, {
        "fixed" : "44.0.0-beta.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/security/advisories/GHSA-qmv3-fv6v-rmhq"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/pull/52480"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/000453e399bd1dee5e86376cdd9ece5fc071e601"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/06a12a87a23f40abbf580fc7a552bc1189812c45"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/25ba8be57c65a83d8c14ebb8aa37693df17a04f3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/c38d6fd68756f04647ea857bdb6a2abec332e217"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electron/electron"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v42.10.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v43.5.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v44.0.0-beta.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-345" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-29T18:02:01Z",
    "nvd_published_at" : null
  }
}