5.7
MEDIUM CVSS 3.1
CVE-2026-70609
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.

INFO

Published Date :

Aug. 5, 2026, 6:17 p.m.

Last Modified :

Aug. 5, 2026, 6:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-70609 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Update Electron to a patched version to fix improper input sanitization in webContents.openDevTools().
  • Update Electron to version 39.8.7 or later.
  • Update Electron to version 40.9.0 or later.
  • Update Electron to version 41.2.0 or later.
  • Update Electron to version 42.0.0-beta.1 or later.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-70609 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-70609 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-70609 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'electron', 'product': 'electron', 'versions': [{'status': 'affected', 'version': '< 39.8.7'}, {'status': 'affected', 'version': '>= 40.0.0-alpha.1, < 40.9.0'}, {'status': 'affected', 'version': '>= 41.0.0-alpha.1, < 41.2.0'}, {'status': 'affected', 'version': '>= 42.0.0-alpha.1, < 42.0.0-beta.1'}]}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
    Added CWE CWE-94
    Added CWE CWE-116
    Added Reference https://github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1
    Added Reference https://github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b
    Added Reference https://github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce
    Added Reference https://github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba
    Added Reference https://github.com/electron/electron/pull/50665
    Added Reference https://github.com/electron/electron/pull/50666
    Added Reference https://github.com/electron/electron/pull/50667
    Added Reference https://github.com/electron/electron/pull/50668
    Added Reference https://github.com/electron/electron/releases/tag/v39.8.7
    Added Reference https://github.com/electron/electron/releases/tag/v40.9.0
    Added Reference https://github.com/electron/electron/releases/tag/v41.2.0
    Added Reference https://github.com/electron/electron/releases/tag/v42.0.0-beta.1
    Added Reference https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.