CVE-2026-113798

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

Published Oct 21, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Electron applications that host cross‑origin iframes could be tricked into granting pointer lock permission to an untrusted frame under the identity of the top‑level page. The framework’s session.setPermissionRequestHandler receives the top‑level frame’s URL and main frame flag instead of the requesting iframe’s values, allowing an attacker to obtain pointer lock as if they were the parent page. This results in an unauthorized privilege elevation within the application, potentially leading to denial of service or malicious user input capture. The weakness is classified as CWE‑346, "Information Exposure Through Inadequate Access Control".

Affected Systems

Electron version 42.11.9 and all later releases are safe; every Electron release prior to 42.11.9, 43.7.6, 44.5.0, and 45.0.0‑alpha.13 is vulnerable. The vulnerability affects Electron applications using session.setPermissionRequestHandler to control pointer lock permissions, regardless of the hosting platform.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited known exploitation. Nonetheless, the attack can be carried out from within an application that embeds untrusted iframes and grants pointer lock based on request origin. An attacker can host a malicious iframe and rely on the incorrect attribution to obtain pointer lock privileges that the host application would otherwise restrict.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Electron to version 42.11.9, 43.7.6, 44.5.0 or 45.0.0‑alpha.13 or later to receive the corrected handling of pointer lock requests
  • Modify the application’s session.setPermissionRequestHandler logic to verify the requesting frame’s origin and URL before granting pointer lock, ensuring it does not default to the top‑level request info
  • Avoid embedding untrusted cross‑origin iframes or whitelisted content if you cannot apply the latest Electron update

Generated by OpenCVE AI on October 22, 2026 at 03:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x562-297c-g43g Electron: Pointer lock permission requests can be attributed to the wrong frame
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron
Type Values Removed Values Added
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.
Title Electron: Pointer lock permission requests can be attributed to the wrong frame
Weaknesses CWE-346
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 1:22 AM
Reserved
Oct 20, 2026, 5:39 PM
Status
Undergoing Analysis
Published
Oct 21, 2026, 5:18 PM
Modified
Oct 28, 2026, 2:17 AM