Advisory

GHSA-x562-297c-g43g

Also known as: CVE-2026-113798

Summary

Electron: Pointer lock permission requests can be attributed to the wrong frame

Details

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]](mailto:[email protected])

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-22 16:47 UTC
Modified
2026-10-22 17:00 UTC

Affected packages and fixes

electron

npm · All systems

Affected

  • introduced 45.0.0-alpha.1, fixed 45.0.0-alpha.13 (semver)

Fixed versions

45.0.0-alpha.13

Fix

electron

npm · All systems

Affected

  • introduced 44.0.0-alpha.1, fixed 44.5.0 (semver)

Fixed versions

44.5.0

Fix

electron

npm · All systems

Affected

  • introduced 43.0.0-alpha.1, fixed 43.7.6 (semver)

Fixed versions

43.7.6

Fix

electron

npm · All systems

Affected

  • introduced 0, fixed 42.11.9 (semver)

Fixed versions

42.11.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences