Loading advisory.
Loading advisory.
Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter
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.
Published 2026-08-05 17:32 UTC · Modified 2026-08-20 05:15 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| electron | npm | < 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 | 39.8.7, 40.9.0, 41.2.0, 42.0.0-beta.1 | npm install electron@39.8.7npm install electron@40.9.0npm install electron@41.2.0npm install electron@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.
Apps are only affected if untrusted input can reach the mode argument of openDevTools(), or if untrusted content can call openDevTools() on a <webview> it embeds. Apps that only ever pass a fixed dock mode are not affected.
Only pass fixed, allowlisted values (right, bottom, undocked, detach) as the DevTools mode, and do not expose openDevTools to untrusted content.
42.0.0-beta.1
41.2.0
40.9.0
39.8.7
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.005 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |