CVE-2026-34771 in Electronjs Electron
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, o...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Electronjs | Electron | 41.0.0 < 38.8.6 ≥ 39.0.0, < 39.8.0 ≥ 40.0.0, < 40.7.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-34771 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151340-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2026-04-04 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-364: CWE-364
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Analysis AI-written, not human-reviewed
Electron applications prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8 are vulnerable to a use-after-free issue when handling fullscreen, pointer-lock, or keyboard-lock permission requests through asynchronous session.setPermissionRequestHandler(). This can lead to potential code execution or other security issues.
An attacker could exploit this vulnerability by crafting a malicious web page that triggers a permission request while the requesting frame navigates or the window closes. This could lead to a use-after-free condition, potentially allowing the attacker to execute arbitrary code or cause a denial of service.
Questions
What is CVE-2026-34771?
Electron applications prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8 are vulnerable to a use-after-free issue when handling fullscreen, pointer-lock, or keyboard-lock permission requests through asynchronous session.setPermissionRequestHandler(). This can lead to potential code execution or other security issues.
What is the CVSS score for CVE-2026-34771?
CVE-2026-34771 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2026-34771 actively exploited?
No confirmed active exploitation of CVE-2026-34771 as of 2026-09-25.
How do I remediate CVE-2026-34771?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-34771?
CVE-2026-34771 affects Electronjs Electron.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Electronjs","product":"Electron","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.