5.7

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

Analyzed
AliasesGHSA-4f78-qhmw-8j8m
Published 05-08-2026Last modified 06-08-2026

Vulnerability summary

CVE-2026-70609 is a medium (CVSS 5.7) Improper Control of Generation of Code vulnerability in electron. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · -0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 05-08-2026
    PublishedVulnerability first disclosed.
  2. 06-08-2026
    Last modifiedVulnerability information updated.

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

Decrease -0.14 pp

From 0.53% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.

Electron1 product
  • electron< 39.8.7 | ≥ 40.0.0-alpha.1, < 40.9.0 | ≥ 41.0.0-alpha.1, < 41.2.0 | ≥ 42.0.0-alpha.1, < 42.0.0-beta.1
Electronjs1 product
  • electronEOL< 39.8.7 | ≥ 40.0.0, < 40.9.0 | ≥ 41.0.0, < 41.2.0 | 42.0.0:alpha1 | 42.0.0:alpha2 | 42.0.0:alpha3 | 42.0.0:alpha4 | 42.0.0:alpha5 | 42.0.0:alpha6 | 42.0.0:beta1
Npm1 product
  • electron< 39.8.7 | ≥ 40.0.0-alpha.1, < 40.9.0 | ≥ 41.0.0-alpha.1, < 41.2.0 | ≥ 42.0.0-alpha.1, < 42.0.0-beta.1

3 vendors · 3 products

References

14 links
Show all 14 references