CVE-2026-70609
Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.7 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | Medium5.7 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.53% · top 55% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.7.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmelectronGHSA-4f78-qhmw-8j8m (opens in a new tab)
References (13)
- https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m (opens in a new tab)x_refsource_CONFIRM
- https://github.com/electron/electron/pull/50665 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/pull/50666 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/pull/50667 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/pull/50668 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v39.8.7 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v40.9.0 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v41.2.0 (opens in a new tab)x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v42.0.0-beta.1 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4f78-qhmw-8j8m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-70609)Record last updated .