CVE-2026-34777 Details
Description
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.
A vulnerability exists in Electron versions prior to 38.8.6, 39.0.0-alpha.1 through 39.8.1, 40.0.0-alpha.1 through 40.8.1, and 41.0.0-alpha.1 through 41.0.0. When an iframe requests fullscreen, pointerLock, keyboardLock, openExternal, or media permissions, the origin sent to session.setPermissionRequestHandler() is the top-level page's origin instead of the iframe's origin. This can lead to unintentional permission grants to embedded third-party content for apps that rely on the origin parameter or webContents.getURL(). However, the correct requesting URL is available through details.requestingUrl, allowing unaffected apps to check this instead.
To address this vulnerability, update Electron to version 38.8.6, 39.8.1, 40.8.1, or 41.0.0. If an immediate update is not possible, modify the permission request handler to evaluate details.requestingUrl instead of the origin parameter or webContents.getURL() when determining whether to allow fullscreen, pointerLock, keyboardLock, openExternal, or media permissions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/electron/electron/security/advisories/GHSA-r5p7-gp4j-qhrx | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| 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 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | Initial Analysis | [email protected] |
| Apr 4, 2026 | New CVE Received | [email protected] |