Electron PermissionRequestHandler UAFO before v38.8.6, v39.8.0, v40.7.0, v41.0.0-beta.8
CVE-2026-34771 Published on April 3, 2026

Electron: Use-after-free in WebContents fullscreen, pointer-lock, and keyboard-lock permission callbacks
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8, apps that register an asynchronous session.setPermissionRequestHandler() may be vulnerable to a use-after-free when handling fullscreen, pointer-lock, or keyboard-lock permission requests. If the requesting frame navigates or the window closes while the permission handler is pending, invoking the stored callback dereferences freed memory, which may lead to a crash or memory corruption. Apps that do not set a permission request handler, or whose handler responds synchronously, are not affected. This issue has been patched in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.

NVD

Vulnerability Analysis

CVE-2026-34771 can be exploited with network access, requires user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.

Attack Vector:
NETWORK
Attack Complexity:
HIGH
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH

Weakness Types

What is a Dangling pointer Vulnerability?

Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

CVE-2026-34771 has been classified to as a Dangling pointer vulnerability or weakness.

Signal Handler Race Condition

The software uses a signal handler that introduces a race condition.


Products Associated with CVE-2026-34771

Want to know whenever a new CVE is published for Red Hat Podman Desktop? stack.watch will email you.

 

Affected Versions

electron: Red Hat Build of Podman Desktop: Red Hat Build of Podman Desktop - Tech Preview:

Exploit Probability

EPSS
0.29%
Percentile
20.11%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.