CVE-2026-70607

Electron: window.open features string controls some window options considered privileged

Published Aug 5, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, some window options supplied by web content in the window.open() features string were applied to the new BrowserWindow without an allowlist. Untrusted content could set window options it should not control, including options that cause the main process to access attacker-chosen file or network paths, when untrusted content can call window.open() and the app does not override child window options via setWindowOpenHandler or overrideBrowserWindowOptions. This issue is fixed in 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.

Analysis

AI-generated

Technical impact

Untrusted web content can invoke window.open with a features string that sets privileged BrowserWindow options. These options, when not filtered by an allowlist, allow the main process to access attacker‑chosen file or network paths. This leads to a potential escalation of privileges within the Electron application and could enable arbitrary file read/write or network communication caused by the main process.

Affected Systems

The vulnerability affects the Electron framework (electron:electron) in all releases older than version 39.8.8, 40.9.0, 41.2.1, and 42.0.0‑beta.3. Applications built with these Electron releases are at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The most likely attack vector involves untrusted content. If such content can call window.open, it can maliciously set unrestricted options, enabling the main process to access arbitrary local files or network resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Electron to a fixed release such as 39.8.8, 40.9.0, 41.2.1, 42.0.0‑beta.3, or later.
  • If upgrading is not immediately possible, modify the application to use setWindowOpenHandler or overrideBrowserWindowOptions to enforce strict option filtering.
  • Restrict the ability of untrusted content to invoke window.open, or validate the features string to prevent privileged options from being set.

Generated by OpenCVE AI on August 5, 2026 at 18:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v93f-fgjr-hjrj Electron: window.open features string controls some window options considered privileged
History
Type Values Removed Values Added
First Time appeared Electronjs
Electronjs electron
CPEs cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta2:*:*:*:node.js:*:*
Vendors & Products Electronjs
Electronjs electron
Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, some window options supplied by web content in the window.open() features string were applied to the new BrowserWindow without an allowlist. Untrusted content could set window options it should not control, including options that cause the main process to access attacker-chosen file or network paths, when untrusted content can call window.open() and the app does not override child window options via setWindowOpenHandler or overrideBrowserWindowOptions. This issue is fixed in 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Title Electron: window.open features string controls some window options considered privileged
Weaknesses CWE-20
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 5, 2026, 6:27 PM
Reserved
Aug 4, 2026, 7:50 PM
Status
Analyzed
Published
Aug 5, 2026, 5:16 PM
Modified
Oct 8, 2026, 1:53 PM