GitHub Advisoryadvisory · npm
GHSA-x562-297c-g43g Electron: Pointer lock permission requests can be attributed to the wrong frame
MEDIUM
Official page ↗
- Aliases
- CVE-2026-113798
- Ecosystem
- npm
- Packages
- electron
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- Weaknesses
- CWE-346
- Reviewed
- 2026-10-22
Affected packages
• npm electron: >= 45.0.0-alpha.1, < 45.0.0-alpha.13 → fixed in 45.0.0-alpha.13
• npm electron: >= 44.0.0-alpha.1, < 44.5.0 → fixed in 44.5.0
• npm electron: >= 43.0.0-alpha.1, < 43.7.6 → fixed in 43.7.6
• npm electron: < 42.11.9 → fixed in 42.11.9
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.13`
• `44.5.0`
• `43.7.6`
• `42.11.9`
For more information
If you have any questions or comments about this advisory, email us at [email protected]
Related
Alias · CVE (1)
- CVE-2026-113798 Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. vulnerability
Weakness · CWE (1)
- CWE-346 Origin Validation Error weakness
References
- https://github.com/electron/electron/security/advisories/GHSA-x562-297c-g43g web
- https://nvd.nist.gov/vuln/detail/CVE-2026-113798 advisory
- 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 web
- https://github.com/electron/electron package