Skip to main content

CVE-2026-34772

HIGH
Use After Free (CWE-416)
2026-04-03 https://github.com/electron/electron GHSA-9w97-2464-8783
8.8
CVSS 3.1 · NVD
View

Vulnerability 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm electron fix: 38.8.6, 39.8.0, 40.7.0, 41.0.0-beta.7

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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 5.8 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Severity Changed
Jul 24, 2026 - 22:23 NVD
MEDIUM HIGH
CVSS changed
Jul 24, 2026 - 22:23 NVD
5.8 (MEDIUM) 8.8 (HIGH)
Patch released
Apr 03, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 02:41 nvd
MEDIUM 5.8

DescriptionNVD

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.7
  • 40.7.0
  • 39.8.0
  • 38.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

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)NVD

pkg:npm/electron
pkg:npm/electron
pkg:npm/electron
pkg:npm/electron

Related Vulnerabilities in Electron Multiple Use-After-Free Flaws

View all 4

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy