Electron: Pointer lock permission requests can be attributed to the wrong frame
GHSA-x562-297c-g43g · CVE-2026-113798
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
For pointerLock permission requests made from some cross-origin iframes, session.setPermissionRequestHandler() was given the top-level frame's requestingUrl and isMainFrame instead of the requesting frame's. Apps that grant pointer lock based on the requesting origin could grant it to embedded content under the top-level page's identity.
Apps are only affected if they embed untrusted content in iframes and decide pointerLock requests by origin in setPermissionRequestHandler. Apps that do not embed untrusted content, or that deny pointerLock for it, are not affected.
Workarounds
Deny the pointerLock permission for web contents that embed untrusted frames.
Fixed Versions
45.0.0-alpha.1344.5.043.7.642.11.9
For more information
If you have any questions or comments about this advisory, email us at security@electronjs.org
References
- WEB https://github.com/electron/electron/security/advisories/GHSA-x562-297c-g43g
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-113798
- WEB https://github.com/electron/electron/pull/54466
- WEB https://github.com/electron/electron/pull/54465
- WEB https://github.com/electron/electron/pull/54464
- WEB https://github.com/electron/electron/pull/54463
- WEB https://github.com/electron/electron/pull/54432
- WEB https://github.com/electron/electron/commit/a48e6eaaafa85b6fc40f7431ceec4fd6ef4bb899
- WEB https://github.com/electron/electron/commit/4073e9f4712f61e6b8abd5548673cc7638f6c1a1
- WEB https://github.com/electron/electron/commit/1755ee598697356959219beefee1e139bc3f8207
- WEB https://github.com/electron/electron/commit/0b680cfa1ffa70a50282da53efde37a210d5223b
- WEB https://github.com/electron/electron/commit/076c7496791a45968cf8d9e76e9657bc161ea979
- WEB https://github.com/electron/electron/releases/tag/v42.11.9
- WEB https://github.com/electron/electron/releases/tag/v43.7.6
- WEB https://github.com/electron/electron/releases/tag/v44.5.0
- WEB https://github.com/electron/electron/releases/tag/v45.0.0-alpha.13
- PACKAGE https://github.com/electron/electron
Ready to move
Start Securing
Free, no credit card | First findings in minutes