CVE-2026-34774 in Electronjs Electron
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 39.8.1, 40.7.0, and 41.0.0, apps that use offscreen rendering and allow child windows via window.open() may be vulnerable to a use-after-free. If the parent offscreen WebContents is destroyed whi...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, 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 < 39.8.1 ≥ 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 39.8.1, 40.7.0, and 41.0.0, apps that use offscreen rendering and allow child windows via window.open() may be vulnerable to a use-after-free. If the parent offscreen WebContents is destroyed while a child window remains open, subsequent paint frames on the child dereference freed memory, which may lead to a crash or memory corruption. Apps are only affected if they use offscreen rendering (webPreferences.offscreen: true) and their setWindowOpenHandler permits child windows. Apps that do not use offscreen rendering, or that deny child windows, are not affected. This issue has been patched in versions 39.8.1, 40.7.0, and 41.0.0.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-34774 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151343-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-04-04 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
CWE-825: CWE-825
Analysis AI-written, not human-reviewed
Electron versions prior to 39.8.1, 40.7.0, and 41.0.0 are vulnerable to a use-after-free issue when using offscreen rendering and allowing child windows via window.open(). If the parent offscreen WebContents is destroyed while a child window remains open, subsequent paint frames on the child can dereference freed memory.
An attacker could exploit this vulnerability by creating a scenario where the parent offscreen WebContents is destroyed while a child window is still open. This could lead to arbitrary code execution or other unspecified impacts.
Questions
What is CVE-2026-34774?
Electron versions prior to 39.8.1, 40.7.0, and 41.0.0 are vulnerable to a use-after-free issue when using offscreen rendering and allowing child windows via window.open(). If the parent offscreen WebContents is destroyed while a child window remains open, subsequent paint frames on the child can dereference freed memory.
What is the CVSS score for CVE-2026-34774?
CVE-2026-34774 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.6%.
Is CVE-2026-34774 actively exploited?
No confirmed active exploitation of CVE-2026-34774 as of 2026-09-25.
How do I remediate CVE-2026-34774?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-34774?
CVE-2026-34774 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.