CVE-2026-34771
HIGH 8.8CVSS 3.1Electron: 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.
- Published
- 4 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-364CWE-416
- Also known as
- GHSA-8337-3p73-46f4
- Sources
- NVDJSONOSV GHSA-8337-3p73-46f4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
< 38.8.6 | 38.8.6 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 39.0.0, < 39.8.0 | 39.8.0 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 40.0.0, < 40.7.0 | 40.7.0 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:* |
= 41.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:* |
= 41.0.0 | |
| OSV | npm | electron | < 38.8.6 | 38.8.6 |
| OSV | npm | electron | >= 39.0.0-alpha.1, < 39.8.0 | 39.8.0 |
| OSV | npm | electron | >= 40.0.0-alpha.1, < 40.7.0 | 40.7.0 |
| OSV | npm | electron | >= 41.0.0-alpha.1, < 41.0.0-beta.8 | 41.0.0-beta.8 |
References
- https://github.com/electron/electron/security/advisories/GHSA-8337-3p73-46f4 · Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2026-34771
- https://bugzilla.redhat.com/show_bug.cgi?id=2454995
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34771.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-34771 · ADVISORY
- https://github.com/electron/electron · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Apr 2026)