Electron: Pointer lock permission requests can be attributed to the wrong frame
Published 22 Oct 2026 · Updated 22 Oct 2026
Affected packages
- Affected
- >=45.0.0-alpha.1 <45.0.0-alpha.13
- Fixed in
- 45.0.0-alpha.13
npm install electron@45.0.0-alpha.13- Affected
- >=44.0.0-alpha.1 <44.5.0
- Fixed in
- 44.5.0
npm install electron@44.5.0- Affected
- >=43.0.0-alpha.1 <43.7.6
- Fixed in
- 43.7.6
npm install electron@43.7.6- Affected
- <42.11.9
- Fixed in
- 42.11.9
npm install electron@42.11.9Details
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](mailto:security@electronjs.org)
Is GHSA-x562-297c-g43g in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected electron, and gives you the command that fixes it.
References
- Linkgithub.com/electron/electron/security/advisories/GHSA-x562-297c-g43g
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-113798
- Linkgithub.com/electron/electron/pull/54466
- Linkgithub.com/electron/electron/pull/54465
- Linkgithub.com/electron/electron/pull/54464
- Linkgithub.com/electron/electron/pull/54463
- Linkgithub.com/electron/electron/pull/54432
- Linkgithub.com/electron/electron/commit/a48e6eaaafa85b6fc40f7431ceec4fd6ef4bb899
- Linkgithub.com/electron/electron/commit/4073e9f4712f61e6b8abd5548673cc7638f6c1a1
- Linkgithub.com/electron/electron/commit/1755ee598697356959219beefee1e139bc3f8207
- Linkgithub.com/electron/electron/commit/0b680cfa1ffa70a50282da53efde37a210d5223b
- Linkgithub.com/electron/electron/commit/076c7496791a45968cf8d9e76e9657bc161ea979
- Linkgithub.com/electron/electron/releases/tag/v42.11.9
- Linkgithub.com/electron/electron/releases/tag/v43.7.6
- Linkgithub.com/electron/electron/releases/tag/v44.5.0
- Linkgithub.com/electron/electron/releases/tag/v45.0.0-alpha.13
- Packagegithub.com/electron/electron
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.