Cross-Site Scripting Vulnerability in Electron Framework
CVE-2026-34777
What is CVE-2026-34777?
The Electron framework, utilized for developing cross-platform desktop applications, has a vulnerability where permission requests from iframes are incorrectly handled. In versions before 38.8.6, 39.8.1, 40.8.1, and 41.0.0, the permission origin used for key actions like fullscreen and media access mistakenly references the top-level page's origin instead of the specific iframe's. This mismanagement can lead to unauthorized permissions being granted to third-party content embedded within the application, posing significant security risks. Developers are advised to verify the requesting URL through details.requestingUrl to mitigate this issue.
Affected Version(s)
electron < 38.8.6 < 38.8.6
electron >= 39.0.0-alpha.1, < 39.8.1 < 39.0.0-alpha.1, 39.8.1
electron >= 40.0.0-alpha.1, < 40.8.1 < 40.0.0-alpha.1, 40.8.1
