CVE-2026-70607: Electron improper input validation in window.open features string

CVE-2026-70607 · Severity: medium · CVSS 5.3 · Published 2026-08-05

Electron, a framework used to build desktop applications with web technologies, contains a vulnerability where untrusted web content can manipulate window settings. By using specific commands when opening a new window, an attacker could force the application to access unauthorized files or network locations. This could lead to the exposure of sensitive local data or internal network information.

Technologies: electron (npm). Vendors: npm.

Quick answers

Is CVE-2026-70607 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-70607 being exploited in the wild.
How severe is CVE-2026-70607?
Medium severity, with a CVSS score of 5.3, published 5 August 2026.
Which products and versions are affected?
electron (npm) SEMVER:introduced=0,fixed=39.8.8.
Is there a fix for CVE-2026-70607?
Yes. electron (npm): upgrade to 39.8.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-70607 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-70607?
Check whether you run electron (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • electron (npm): upgrade to 39.8.8 or later
    npm install electron@39.8.8

Technical details

A vulnerability in Electron's handling of the window.open() features string allows untrusted web content to specify privileged BrowserWindow options that are not properly allowlisted. By crafting a specific features string, an attacker can bypass intended restrictions and set options that cause the main process to access attacker-controlled file or network paths. This is classified as improper input validation (CWE-20). The vulnerability affects applications that allow untrusted content to call window.open() without implementing a setWindowOpenHandler to deny or override child window options. Patches have been released in versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.

Affected products

  • Electron Electron < 39.8.8, >= 40.0.0-alpha.1 < 40.9.0, >= 41.0.0-alpha.1 < 41.2.1, >= 42.0.0-alpha.1 < 42.0.0-beta.3

Identifiers

  • CVE-2026-70607
  • GHSA-v93f-fgjr-hjrj

Timeline

  • 2026-04-11: patched: Initial backport PRs merged into various release branches.
  • 2026-07-27: disclosed: Advisory published by Electron maintainers.
  • 2026-08-05: advisory: GitHub Advisory reviewed and updated.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.