CVE-2026-70609: Electron · DevTools JavaScript Injection via Unsanitized Dock State Parameter
Affects electronSource GCVE Database
Not known to be exploited · CVSS 5.7 Medium : upgrade to 39.8.7 when convenient.
Data as of 3 Nov 2026, 22:58 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 39.8.7, 40.9.0, 41.2.0 +1
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Electron versions 39.8.7 and later. Applications should upgrade to these or newer versions. As a workaround, only pass fixed, allowlisted values ('right', 'bottom', 'undocked', 'detach') to the DevTools 'mode' parameter and avoid exposing openDevTools to untrusted content. Following these mitigations prevents exploitation of this vulnerability.
Description
A vulnerability in Electron allows JavaScript injection in the DevTools frontend via an unsanitized 'mode' parameter passed to webContents.openDevTools(). This can lead to script execution in the DevTools context, which may have Node.js access in unsandboxed configurations. The issue affects applications that allow untrusted input to influence the 'mode' argument or permit untrusted content to call openDevTools on embedded webviews. Fixed versions are 39.8.7 and later.
References
- github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m (opens in a new tab)
- github.com/electron/electron/pull/50665 (opens in a new tab)
- github.com/electron/electron/pull/50666 (opens in a new tab)
- github.com/electron/electron/pull/50667 (opens in a new tab)
- github.com/electron/electron/pull/50668 (opens in a new tab)
- github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1 (opens in a new tab)
- github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b (opens in a new tab)
- github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce (opens in a new tab)
- github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba (opens in a new tab)
- github.com/electron/electron (opens in a new tab)
- github.com/electron/electron/releases/tag/v39.8.7 (opens in a new tab)
- github.com/electron/electron/releases/tag/v40.9.0 (opens in a new tab)
- github.com/electron/electron/releases/tag/v41.2.0 (opens in a new tab)
- github.com/electron/electron/releases/tag/v42.0.0-beta.1 (opens in a new tab)