CVE-2026-34772
HIGHVulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 5.8 (Medium) with local attack vector, high complexity, and user interaction requirement reflects realistic constraints: an attacker cannot trigger this remotely and must trick a user into dismissing a save dialog during a specific race condition window. EPSS data not provided, but the combination of high complexity (AC:H) and mandatory user interaction (UI:R) significantly reduces practical exploitability despite the confidentiality impact (C:H). SSVC framework analysis: exploitation is unconfirmed (no KEV status, no public POC), technical impact is partial (memory corruption may cause denial of service or limited information disclosure but requires specific timing). The workaround-canceling downloads before session destruction-is implementable for most applications, further lowering real-world risk. This is a legitimate medium-severity issue relevant to Electron application developers rather than an across-the-board critical risk. |
| Exploit ScenarioDerived | An attacker cannot remotely trigger this vulnerability due to its local-only attack vector. Instead, a developer or user must be tricked into a specific scenario: an Electron application initiates a file download (presenting the native save dialog), and concurrently the application or an attacker with local code execution triggers session destruction. When the user dismisses the save dialog, the dialog callback attempts to access freed session memory, potentially crashing the application or corrupting its memory state. This requires precise timing and user interaction, making it impractical for widespread exploitation but relevant for denial-of-service attacks against specific Electron applications. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 03, 2026
Use-after-free in Electron framework allows memory corruption when native save-file dialogs remain open during session teardown. Affected Electron versions prior to 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.7 enable local attackers with UI interaction to trigger freed memory dereference via downloaded files, potentially causing application crashes or memory corruption. Only applications that programmatically destroy sessions at runtime and permit downloads are vulnerable; no public exploit code or active exploitation has been identified.
RemediationAI
Vendor-released patches are available: upgrade to Electron 38.8.6 or later (38.x), 39.8.0 or later (39.x), 40.7.0 or later (40.x), or 41.0.0-beta.7 or later (41.x development). Until patched, implement the workaround by ensuring that pending downloads are explicitly canceled before initiating session teardown, and avoid destroying sessions programmatically while native file dialogs may be open. For additional guidance, contact the Electron security team at security@electronjs.org. Reference: https://github.com/electron/electron/security/advisories/GHSA-9w97-2464-8783.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Electron is a framework for building cross-platform desktop applications using Chromium and Node.js. This vulnerability exists in the session management layer's interaction with the native file save dialog (part of the OS-level download UI). When an application calls session destruction APIs while a native save-file dialog triggered by a download remains open, the dialog's reference to session memory becomes invalid. The underlying issue is a use-after-free (CWE-416) condition where the dismissal of the save dialog attempts to dereference memory that was freed during session teardown. The CPE identifier pkg:npm/electron indicates this affects the npm-distributed Electron package across multiple versions.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Impact
Apps that allow downloads and programmatically destroy sessions may be vulnerable to a use-after-free. If a session is torn down while a native save-file dialog is open for a download, dismissing the dialog dereferences freed memory, which may lead to a crash or memory corruption.
Apps that do not destroy sessions at runtime, or that do not permit downloads, are not affected.
Workarounds
Avoid destroying sessions while a download save dialog may be open. Cancel pending downloads before session teardown.
Fixed Versions
41.0.0-beta.740.7.039.8.038.8.6
For more information
If there are any questions or comments about this advisory, please email [security@electronjs.org](mailto:security@electronjs.org)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
GHSA-9w97-2464-8783
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB