Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-113798 EUVD-2026-107374GHSA-x562-297c-g43g

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

Published Oct 21, 2026 · Updated Oct 28, 2026 · Assigned by GitHub_M

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 42.11.9, 43.7.6, 44.5.0, and 45.0.0-alpha.13, pointerLock permission requests from some cross-origin iframes caused session.setPermissionRequestHandler() to receive the top-level frame's requestingUrl and isMainFrame values instead of those of the requesting frame. An application that embeds untrusted iframe content and grants pointer lock based on the requesting origin could therefore grant the permission under the top-level page's identity. Applications that deny pointerLock for untrusted embedded content are not affected. This issue is fixed in versions 42.11.9, 43.7.6, 44.5.0, and 45.0.0-alpha.13.

Affected products

VendorProductAffectedFixed
electron electron < 42.11.9, >= 43.0.0-alpha.1, < 43.7.6, >= 44.0.0-alpha.1, < 44.5.0, >= 45.0.0-alpha.1, < 45.0.0-alpha.13 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm electron >= 45.0.0-alpha.1, < 45.0.0-alpha.13 45.0.0-alpha.13 GHSA-x562-297c-g43g
npm electron >= 44.0.0-alpha.1, < 44.5.0 44.5.0 GHSA-x562-297c-g43g
npm electron >= 43.0.0-alpha.1, < 43.7.6 43.7.6 GHSA-x562-297c-g43g
npm electron < 42.11.9 42.11.9 GHSA-x562-297c-g43g

References