Loading advisory.
Loading advisory.
Electron: Use-after-free in WebContents fullscreen, pointer-lock, and keyboard-lock permission callbacks
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.
Published 2026-04-03 02:40 UTC · Modified 2026-07-15 01:03 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| electron | npm | < 38.8.6 >= 39.0.0-alpha.1, < 39.8.0 >= 40.0.0-alpha.1, < 40.7.0 >= 41.0.0-alpha.1, < 41.0.0-beta.8 | 38.8.6, 39.8.0, 40.7.0, 41.0.0-beta.8 | npm install electron@38.8.6npm install electron@39.8.0npm install electron@40.7.0npm install electron@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.
Respond to permission requests synchronously, or deny fullscreen, pointer-lock, and keyboard-lock requests if an asynchronous flow is required.
41.0.0-beta.8
40.7.0
39.8.0
38.8.6
If there are any questions or comments about this advisory, please email security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.004 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.003 | v2026.06.15 |
| 2026-11-30 | 0.004 | 0.004 | v2026.06.15 |