{"cve":"CVE-2026-70609","nvd":{"published":"2026-08-05T18:17:15.307","modified":"2026-10-08T13:53:24.357","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.7},"cwes":["CWE-94","CWE-116"],"references":["https://github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1","https://github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b","https://github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce","https://github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba","https://github.com/electron/electron/pull/50665"],"products":["electronjs:electron"],"source":"nvd","synced_at":"2026-10-19T22:47:10.050265369+00:00"},"epss":{"cve":"CVE-2026-70609","score":0.00532,"percentile":0.44666,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4f78-qhmw-8j8m","url":"https://osv.dev/vulnerability/GHSA-4f78-qhmw-8j8m","summary":"Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter","modified":"2026-08-20T05:15:07.174743690Z","packages":[{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":["<39.8.7"],"fixed":["39.8.7"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=40.0.0-alpha.1 <40.9.0"],"fixed":["40.9.0"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=41.0.0-alpha.1 <41.2.0"],"fixed":["41.2.0"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=42.0.0-alpha.1 <42.0.0-beta.1"],"fixed":["42.0.0-beta.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}