CVE-2026-70599: Electron · Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin
Affects electronSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium : upgrade to 39.8.7 when convenient.
Data as of 3 Nov 2026, 22:58 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 9% 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:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
| npmelectron | Affected
| Fixed in
|
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, 40.9.0, 41.2.0, and 42.0.0-beta.1. Applications should upgrade to one of these versions or later. As a workaround, applications can check details.securityOrigin instead of requestingOrigin in their permission check handlers or avoid delegating device permissions to untrusted cross-origin iframes.
Description
A vulnerability in Electron prior to versions 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1 causes the permission check handler to receive the main frame origin instead of the requesting iframe origin for serial-port and media device permissions. This can lead to cross-origin iframes gaining device access intended only for the top-level origin if the app uses origin-based logic with setPermissionCheckHandler. The issue affects apps that embed cross-origin iframes with delegated device permissions and use requestingOrigin for permission decisions. The vulnerability is fixed in the stated versions.