CVE-2026-102674: Electron Windows Opened From A Sandboxed Vulnerability

HIGH
Advisory Identifier: GHSA-gr2m-v5gq-v685
CVSS 8.2
CWE-266 CWE-693
Published
Advisory Summary

CVE-2026-102674 is a HIGH (CVSS 8.2) windows opened from a sandboxed vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Electron libraries in the npm ecosystem. The issue involves windows opened from a sandboxed top-level document do not inherit its sandbox restrictions. Remediation is available by upgrading affected packages to version 41.10.6, 42.9.2, 43.4.1, 44.0.0-beta.5.

CVE-2026-102674 at a Glance

CVE Identifier CVE-2026-102674
GHSA Identifier GHSA-gr2m-v5gq-v685
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Electron
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.2

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

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

How to Fix CVE-2026-102674

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: 41.10.6
npm install electron@41.10.6
electron fixed: 42.9.2
npm install electron@42.9.2
electron fixed: 43.4.1
npm install electron@43.4.1
electron fixed: 44.0.0-beta.5
npm install electron@44.0.0-beta.5
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-102674, 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 41.10.6), 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-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. 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 Windows opened from a sandboxed top-level document did not inherit that document's HTML `sandbox` restrictions, so content that was meant to run sandboxed could open a window with the app's full origin. GHSA-hq2x-r82h-9wj4 covers the same issue for sandboxed iframes. Apps are only affected if they render untrusted content in a sandboxed top-level document that allows popups. Apps that deny popups from untrusted content with `setWindowOpenHandler` are not affected. ### Workarounds Return `{ action: 'deny' }` from `setWindowOpenHandler` for windows opened by untrusted content. ### Fixed Versions * `44.0.0-beta.5` * `43.4.1` * `42.9.2` * `41.10.6` ### 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-102674 Affected Electron Versions

4 component(s)
Fixed Versions:
41.10.642.9.243.4.144.0.0-beta.5
Product / Package Ecosystem Affected Versions Fixed Version
electron
npm
< 41.10.6
41.10.6
electron
npm
≥ 42.0.0-alpha.1
< 42.9.2
42.9.2
electron
npm
≥ 43.0.0-alpha.1
< 43.4.1
43.4.1
electron
npm
≥ 44.0.0-alpha.1
< 44.0.0-beta.5
44.0.0-beta.5

References

Frequently Asked Questions

What is CVE-2026-102674?
CVE-2026-102674 is a security vulnerability in Electron involving Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions under CWE-266: Incorrect Privilege Assignment.
Which Electron versions are affected?
Affected versions include releases prior to 41.10.6, 42.9.2, 43.4.1, 44.0.0-beta.5 across affected packages: electron.
What version fixes CVE-2026-102674?
Upgrading to 41.10.6, 42.9.2, 43.4.1, 44.0.0-beta.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electron affected?
Yes, electron is affected in releases prior to 41.10.6, 42.9.2, 43.4.1, 44.0.0-beta.5. Upgrade your dependency to 41.10.6, 42.9.2, 43.4.1, 44.0.0-beta.5 or later.
What is the CVSS score of CVE-2026-102674?
CVE-2026-102674 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2026-102674?
CVE-2026-102674 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check npm dependencies for CVE-2026-102674?
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-gr2m-v5gq-v685",
  "modified" : "2026-09-29T18:05:11Z",
  "published" : "2026-09-29T18:05:11Z",
  "aliases" : [ "CVE-2026-102674" ],
  "summary" : "Electron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions",
  "details" : "### Impact\n\nWindows opened from a sandboxed top-level document did not inherit that document's HTML `sandbox` restrictions, so content that was meant to run sandboxed could open a window with the app's full origin. GHSA-hq2x-r82h-9wj4 covers the same issue for sandboxed iframes.\n\nApps are only affected if they render untrusted content in a sandboxed top-level document that allows popups. Apps that deny popups from untrusted content with `setWindowOpenHandler` are not affected.\n\n### Workarounds\n\nReturn `{ action: 'deny' }` from `setWindowOpenHandler` for windows opened by untrusted content.\n\n### Fixed Versions\n\n* `44.0.0-beta.5`\n* `43.4.1`\n* `42.9.2`\n* `41.10.6`\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:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "41.10.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "42.0.0-alpha.1"
      }, {
        "fixed" : "42.9.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "43.0.0-alpha.1"
      }, {
        "fixed" : "43.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "44.0.0-alpha.1"
      }, {
        "fixed" : "44.0.0-beta.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/security/advisories/GHSA-gr2m-v5gq-v685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/29fc130569f970e91e355383821a4af0f25724a2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/3ecf3e74f4be6e2360644679b0b4698742be0e1d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/6594d5a5b074cf501da084dc7908d3df0d68a886"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/e9c4d3cbe912e18d7c63af78e63e98ae7a48cd3a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electron/electron"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v41.10.6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v42.9.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v43.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/releases/tag/v44.0.0-beta.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266", "CWE-693" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-29T18:05:11Z",
    "nvd_published_at" : null
  }
}