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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-05 · Modified: 2026-08-05
- Aliases: GHSA-9pf5-hg6p-4pwp
- Record: https://cvemate.com/vulnerability/CVE-2026-70599 · JSON: https://cvemate.com/vulnerability/CVE-2026-70599/json

## Description

```text
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, serial-port and media permission checks made from an iframe passed the top-level frame origin to session.setPermissionCheckHandler instead of the requesting iframe origin. Origin-based handler logic could grant a cross-origin iframe device access intended only for the top-level origin. This issue is fixed in 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.182%, percentile 8.083%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron 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
- electronjs electron: \< 39.8.7 \| ≥ 40.0.0, \< 40.9.0 \| ≥ 41.0.0, \< 41.2.1 \| 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 \| 42.0.0:beta2
- Npm electron (Npm): \< 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

## References

- <https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp>
- <https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T08:49:17.382Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
