{"id":"CVE-2026-70609","revision":null,"records":[{"revision":"fc9a6a76a35840dfa03d7b0165c3e3f4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-70609","aliases":[],"title":"Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter","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.","state":0,"publishedAt":"2026-08-05T17:32:21.067+00:00","modifiedAt":"2026-08-06T03:55:49.348+00:00","affected":[{"ecosystem":"Vendor product","name":"electron","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"electron\",\n                    \"product\": \"electron\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 39.8.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 40.0.0-alpha.1, < 40.9.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 41.0.0-alpha.1, < 41.2.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 42.0.0-alpha.1, < 42.0.0-beta.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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,"severity":"MEDIUM"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m","https://github.com/electron/electron/pull/50665","https://github.com/electron/electron/pull/50666","https://github.com/electron/electron/pull/50667","https://github.com/electron/electron/pull/50668","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/releases/tag/v39.8.7","https://github.com/electron/electron/releases/tag/v40.9.0","https://github.com/electron/electron/releases/tag/v41.2.0","https://github.com/electron/electron/releases/tag/v42.0.0-beta.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-70609","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-70609","identifiers":["CVE-2026-70609"]},"retained":false,"historicalAffected":[]},{"revision":"8bc4f20cb61b41a0b7fb6c29a33499a6","observedAt":"2026-11-09T15:06:49.451+00:00","statement":{"source":"euvd","id":"EUVD-2026-53566","aliases":["CVE-2026-70609","GHSA-4f78-qhmw-8j8m"],"title":"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 De…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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,"severity":null}],"references":["https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m","https://github.com/electron/electron/pull/50665","https://github.com/electron/electron/pull/50666","https://github.com/electron/electron/pull/50667","https://github.com/electron/electron/pull/50668","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/releases/tag/v39.8.7","https://github.com/electron/electron/releases/tag/v40.9.0","https://github.com/electron/electron/releases/tag/v41.2.0","https://github.com/electron/electron/releases/tag/v42.0.0-beta.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-53566","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 5, 2026, 5:32:21 PM","dateUpdated":"Aug 6, 2026, 3:55:49 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-53566","identifiers":["EUVD-2026-53566","CVE-2026-70609","GHSA-4f78-qhmw-8j8m"]},"retained":false,"historicalAffected":[]},{"revision":"c36a63b8ec1641dbbe27846e09f8601f","observedAt":"2026-10-25T15:18:57.446+00:00","statement":{"source":"nvd","id":"CVE-2026-70609","aliases":[],"title":"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 De…","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.","state":0,"publishedAt":"2026-08-05T18:17:15.307+00:00","modifiedAt":"2026-10-08T13:53:24.357+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.7,"severity":"MEDIUM"}],"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","https://github.com/electron/electron/pull/50666","https://github.com/electron/electron/pull/50667","https://github.com/electron/electron/pull/50668","https://github.com/electron/electron/releases/tag/v39.8.7","https://github.com/electron/electron/releases/tag/v40.9.0","https://github.com/electron/electron/releases/tag/v41.2.0","https://github.com/electron/electron/releases/tag/v42.0.0-beta.1","https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-70609","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-94","CWE-116"],"productCriteria":["cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-08-05T18:17:15.307","lastModified":"2026-10-08T13:53:24.357"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-70609","identifiers":["CVE-2026-70609"]},"retained":false,"historicalAffected":[]},{"revision":"e21b11a2cc394f5f828dfa373d4a6811","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-4f78-qhmw-8j8m","aliases":["CVE-2026-70609"],"title":"Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter","description":"### Impact\nThe `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.\n\nApps 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.\n\n### Workarounds\nOnly pass fixed, allowlisted values (`right`, `bottom`, `undocked`, `detach`) as the DevTools `mode`, and do not expose `openDevTools` to untrusted content.\n\n### Fixed Versions\n* `42.0.0-beta.1`\n* `41.2.0`\n* `40.9.0`\n* `39.8.7`\n\n### For more information\nIf you have any questions or comments about this advisory, email Electron at [security@electronjs.org](mailto:security@electronjs.org)","state":0,"publishedAt":"2026-08-05T17:32:47+00:00","modifiedAt":"2026-08-20T05:15:07.1747437+00:00","affected":[{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"39.8.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"40.0.0-alpha.1"},{"kind":"fixed","version":"40.9.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"41.0.0-alpha.1"},{"kind":"fixed","version":"41.2.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"42.0.0-alpha.1"},{"kind":"fixed","version":"42.0.0-beta.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m","https://github.com/electron/electron/pull/50665","https://github.com/electron/electron/pull/50666","https://github.com/electron/electron/pull/50667","https://github.com/electron/electron/pull/50668","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","https://github.com/electron/electron/releases/tag/v39.8.7","https://github.com/electron/electron/releases/tag/v40.9.0","https://github.com/electron/electron/releases/tag/v41.2.0","https://github.com/electron/electron/releases/tag/v42.0.0-beta.1"],"sourceUrl":"https://github.com/advisories/GHSA-4f78-qhmw-8j8m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4f78-qhmw-8j8m","identifiers":["GHSA-4f78-qhmw-8j8m","CVE-2026-70609"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T09:26:00.1517867+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T09:26:00.1517867+00:00","lastSuccessAt":"2026-11-11T09:26:00.3919657+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:26:00.3919664+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-f19af5e22c13aa688d23829fe96c281d0deaf6cf2f8cee6748f54f5a479127b2","complete":true,"records":424021,"lastAttemptAt":"2026-11-11T09:25:54.6180937+00:00","lastSuccessAt":"2026-11-11T09:25:54.5258746+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:25:54.6180937+00:00","snapshotPublishedAt":"2026-11-11T09:25:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-fc4586bcf08c432dadec161184c61373","complete":false,"records":13758,"lastAttemptAt":"2026-11-11T09:33:00.5054624+00:00","lastSuccessAt":"2026-11-11T09:33:00.5874013+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:33:00.5874013+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T09:26:00.1517867+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T09:26:00.1517867+00:00","lastSuccessAt":"2026-11-11T09:26:00.3927797+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:26:00.3927799+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-304fa97221904da4b3dcd306fc4b8a4b","complete":true,"records":13752,"lastAttemptAt":"2026-11-11T09:26:01.4581358+00:00","lastSuccessAt":"2026-11-11T09:26:01.454+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:26:01.454+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13812,"expectedIdentifiers":13812,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T09:25:54.9948719+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:25:54.9948719+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T09:25:54.7785287+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:25:54.7785287+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-2bc186fc4a8179fd66d765079d475b0b8e3af9f89b57dcc310e7773ded48b2cc","complete":true,"records":3088,"lastAttemptAt":"2026-11-11T09:26:00.1096189+00:00","lastSuccessAt":"2026-11-11T09:25:59.9234294+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:26:00.1096189+00:00","snapshotPublishedAt":"2026-11-11T09:02:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-085e065fc9050ae18408f7e722c39653aeb186872334d7b3ec1fcafb7ed43d25","complete":true,"records":231665,"lastAttemptAt":"2026-11-11T09:25:54.8906223+00:00","lastSuccessAt":"2026-11-11T08:27:45.2700102+00:00","error":null,"lastVerifiedAt":"2026-11-11T09:25:54.8906223+00:00","snapshotPublishedAt":"2026-11-11T07:32:59+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}