Skip to main content
VulnerabilityPublished

CVE-2026-70609: Electron · DevTools JavaScript Injection via Unsanitized Dock State Parameter

Affects electronSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.7 Medium : upgrade to 39.8.7 when convenient.

Data as of 3 Nov 2026, 22:58 UTC

CVSS 3.1 base score
5.7Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 39.8.7, 40.9.0, 41.2.0 +1
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
npmelectronAffected
  • <39.8.7
Fixed in
  • 39.8.7
npmelectronAffected
  • >=40.0.0-alpha.1 <40.9.0
Fixed in
  • 40.9.0
npmelectronAffected
  • >=41.0.0-alpha.1 <41.2.0
Fixed in
  • 41.2.0
npmelectronAffected
  • >=42.0.0-alpha.1 <42.0.0-beta.1
Fixed in
  • 42.0.0-beta.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Electron versions 39.8.7 and later. Applications should upgrade to these or newer versions. As a workaround, only pass fixed, allowlisted values ('right', 'bottom', 'undocked', 'detach') to the DevTools 'mode' parameter and avoid exposing openDevTools to untrusted content. Following these mitigations prevents exploitation of this vulnerability.

Description

A vulnerability in Electron allows JavaScript injection in the DevTools frontend via an unsanitized 'mode' parameter passed to webContents.openDevTools(). This can lead to script execution in the DevTools context, which may have Node.js access in unsandboxed configurations. The issue affects applications that allow untrusted input to influence the 'mode' argument or permit untrusted content to call openDevTools on embedded webviews. Fixed versions are 39.8.7 and later.

References

Community reviews

Loading reviews…