CVE-2026-113798
JSON

5.4medium

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

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-x562-297c-g43g

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

Product or packageVersionsReported by
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.13CVE List
electron (npm)from 45.0.0-alpha.1 before 45.0.0-alpha.13, from 44.0.0-alpha.1 before 44.5.0, from 43.0.0-alpha.1 before 43.7.6, before 42.11.9GitHub Advisory Database

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Classification

CWE-346

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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 security@electronjs.org

References

https://github.com/electron/electron/security/advisories/GHSA-x562-297c-g43gweb
https://github.com/electron/electron/pull/54432web
https://github.com/electron/electron/pull/54463web
https://github.com/electron/electron/pull/54464web
https://github.com/electron/electron/pull/54465web
https://github.com/electron/electron/pull/54466web
https://github.com/electron/electron/commit/076c7496791a45968cf8d9e76e9657bc161ea979web
https://github.com/electron/electron/commit/0b680cfa1ffa70a50282da53efde37a210d5223bweb
https://github.com/electron/electron/commit/1755ee598697356959219beefee1e139bc3f8207web
https://github.com/electron/electron/commit/4073e9f4712f61e6b8abd5548673cc7638f6c1a1web
https://github.com/electron/electron/commit/a48e6eaaafa85b6fc40f7431ceec4fd6ef4bb899web
https://github.com/electron/electron/releases/tag/v42.11.9web

Sources

SourceRecordLicence
CVE ListCVE-2026-113798 changed 2026-10-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-x562-297c-g43g changed 2026-10-22CC-BY-4.0
NVDCVE-2026-113798 changed 2026-10-28Public domain