Skip to main content
VulnerabilityPublished

CVE-2026-70599: Electron · Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin

Affects electronSource GCVE Database

0
Compare

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

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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: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, 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.

References

Community reviews

Loading reviews…