CVE-2026-70609

Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter

MEDIUM
5.7
CVSS Score
Published: August 5, 2026 at 05:32 PM UTC
Updated: October 8, 2026 at 01:53 PM UTC
2 products affected across 2 vendorsElectronElectron

Using electron by electron?

Get instant alerts when new vulnerabilities affect electron - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.7
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1, the mode option of webContents.openDevTools() was not sanitized before use by the DevTools frontend. If an attacker can influence this value, script under their control may run in the DevTools context, which in unsandboxed configurations has access to Node.js, including when untrusted input reaches the mode argument of openDevTools() or untrusted content calls openDevTools() on a webview it embeds. This issue is fixed in 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Affected range stops below 39.8.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 40.9.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 41.2.0, so it looks safe — our inference, not a vendor statement
v < 39.8.7>= 40.0.0-alpha.1, < 40.9.0>= 41.0.0-alpha.1, < 41.2.0>= 42.0.0-alpha.1, < 42.0.0-beta.1
Affected range stops below 39.8.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 40.9.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 41.2.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 42.0.0-beta.1, so it looks safe — our inference, not a vendor statement

References (13)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/electron/electron/pull/50665
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/electron/electron/pull/50666
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/electron/electron/pull/50667
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/electron/electron/pull/50668

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.7MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
HIGH
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-94CWE-116

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card