# CVE-2026-34777: Electron: Incorrect origin passed to permission request handler for iframe requests

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-03 · Modified: 2026-04-06
- Aliases: GHSA-r5p7-gp4j-qhrx
- Record: https://cvemate.com/vulnerability/CVE-2026-34777 · JSON: https://cvemate.com/vulnerability/CVE-2026-34777/json

## Description

```text
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0, when an iframe requests fullscreen, pointerLock, keyboardLock, openExternal, or media permissions, the origin passed to session.setPermissionRequestHandler() was the top-level page's origin rather than the requesting iframe's origin. Apps that grant permissions based on the origin parameter or webContents.getURL() may inadvertently grant permissions to embedded third-party content. The correct requesting URL remains available via details.requestingUrl. Apps that already check details.requestingUrl are not affected. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.138%, percentile 3.333%, 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: \< 38.8.6 \| ≥ 39.0.0-alpha.1, \< 39.8.1 \| ≥ 40.0.0-alpha.1, \< 40.8.1 \| ≥ 41.0.0-alpha.1, \< 41.0.0
- electronjs electron: \< 38.8.6 \| ≥ 39.0.0, \< 39.8.1 \| ≥ 40.0.0, \< 40.8.1 \| 41.0.0:alpha1 \| 41.0.0:alpha2 \| 41.0.0:alpha3 \| 41.0.0:alpha4 \| 41.0.0:alpha5 \| 41.0.0:alpha6 \| 41.0.0:beta1 \| 41.0.0:beta2 \| 41.0.0:beta3 \| 41.0.0:beta4 \| 41.0.0:beta5 \| 41.0.0:beta6 \| 41.0.0:beta7 \| 41.0.0:beta8
- Npm electron (Npm): \< 38.8.6 \| ≥ 39.0.0-alpha.1, \< 39.8.1 \| ≥ 40.0.0-alpha.1, \< 40.8.1 \| ≥ 41.0.0-alpha.1, \< 41.0.0

## References

- <https://github.com/electron/electron/security/advisories/GHSA-r5p7-gp4j-qhrx>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34777>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T11:26:37.052Z. 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
