External Control of System or Configuration Setting Affecting electron package, versions <39.8.8>=40.0.0-alpha.2 <40.9.1>=41.0.0-alpha.1 <41.2.1>=42.0.0-alpha.1 <42.0.0-beta.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ELECTRON-18565025
  • published6 Aug 2026
  • disclosed5 Aug 2026
  • creditUnknown

Introduced: 5 Aug 2026

NewCVE-2026-70607  (opens in a new tab)
CWE-15  (opens in a new tab)

How to fix?

Upgrade electron to version 39.8.8, 40.9.1, 41.2.1, 42.0.0-beta.3 or higher.

Overview

electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

Affected versions of this package are vulnerable to External Control of System or Configuration Setting via the window.open. An attacker can cause the main process to access attacker-controlled file or network paths by supplying malicious window options in the features string.

Note: This is only exploitable if untrusted content can invoke window.open and the application does not override child window options using setWindowOpenHandler or explicitly set overrideBrowserWindowOptions.

Workaround

This vulnerability can be mitigated by returning { action: 'deny' } from setWindowOpenHandler for untrusted content, or by supplying overrideBrowserWindowOptions to explicitly set every window option.

CVSS Base Scores

version 4.0
version 3.1