Skip to main content

Electron EUVDEUVD-2026-53403

| CVE-2026-70597 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-08-05 GitHub_M GHSA-jm7p-cc5g-qwxx
6.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain low-privileged local shell on macOS
  2. Delivery
    Identify Electron app with same-signed-parent fuse restrictions enabled
  3. Exploit
    Spawn controlled process as app parent, then force parent exit
  4. Install
    Race to recycle parent PID with attacker-controlled process
  5. C2
    Electron TOCTOU check approves attacker process as same-signed parent
  6. Execute
    Supply ELECTRON_RUN_AS_NODE or NODE_OPTIONS to execute arbitrary Node.js
  7. Impact
    Inherit signed app's TCC permissions and keychain access

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Four concrete prerequisites must all be met: (1) macOS platform only - this vulnerability does not affect Electron on Windows or Linux; (2) the target Electron application must have explicitly enabled the fuse-based hardening that restricts ELECTRON_RUN_AS_NODE and/or NODE_OPTIONS to same-signed parent processes - applications without this fuse configuration enabled are explicitly not affected per the vendor advisory; (3) the attacker must have local code execution as a low-privileged user (PR:L) on the same macOS system as the target application; (4) successful exploitation requires winning a TOCTOU timing race - the attacker must recycle the legitimate parent's PID between Electron's getppid() call and the kSecGuestAttributePid Security framework lookup, demanding precise timing or repeated attempts (reflected in AC:H). The limiting factors - local access only, non-default hardening opt-in required, and race-condition complexity - substantially reduce the realistic attack population beyond what the C:H/I:H impact scores suggest in isolation.

Impact

CVSS 6.3 (Medium) with vector AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N accurately represents this vulnerability. The local-only attack vector (AV:L) and high attack complexity (AC:H) significantly constrain exploitability: the attacker must control PID recycling timing on the same macOS host within a narrow race window. Despite those constraints, the C:H and I:H scores are well-justified - successful exploitation yields TCC entitlement inheritance (camera, microphone, contacts, location) and full keychain access of the target signed application, which can be extremely high-value targets. No EPSS score was supplied in the input data; exploitation probability is therefore inferred from the attack complexity and the absence of any CISA KEV listing. No public POC has been identified at time of analysis. The real-world attack surface is further narrowed to macOS only and to Electron apps that have opted into the fuse-based same-signed-parent hardening - a non-default, security-conscious configuration. This makes opportunistic mass exploitation unlikely, but targeted attacks against high-value Electron apps (password managers, developer tools with secrets access) are plausible for a motivated local attacker.

Exploit ScenarioDerived

A local attacker with a low-privileged shell on macOS targets an Electron application that has enabled same-signed-parent fuse restrictions (such as a password manager or developer tool with broad TCC permissions). The attacker launches a controlled process as the parent of the Electron app, then forces the parent to exit and immediately races to recycle the same PID with an attacker-controlled unsigned or differently-signed process. In the narrow TOCTOU window between Electron's getppid() call and the Security framework's code-signature lookup, Electron approves the attacker's process as a same-signed parent, allowing the attacker to supply ELECTRON_RUN_AS_NODE or NODE_OPTIONS and execute arbitrary Node.js code inside the signed app - inheriting its keychain access and TCC entitlements. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 05, 2026

Parent process code-sign spoofing in Electron on macOS allows a local low-privileged attacker to bypass fuse-based hardening controls restricting ELECTRON_RUN_AS_NODE and NODE_OPTIONS, injecting code inside the signed Electron application and inheriting its TCC permissions and keychain access. Only macOS deployments of Electron apps that have explicitly enabled same-signed-parent fuse restrictions are exposed; applications without this hardening are unaffected. No public exploit has been identified at time of analysis, and CVSS AC:H reflects the PID-reuse race-condition timing requirement inherent to the attack.

RemediationAI

Update the Electron dependency to a patched version: 39.8.8 (39.x branch), 40.9.0 or 40.9.1 (40.x branch - see note in confidence section), 41.2.1 (41.x branch), or 42.0.0-beta.3 (42.x pre-release). App developers must rebuild and redistribute their Electron-based applications using the patched Electron version. Per the official GHSA advisory, there are no application-side workarounds - the fix is exclusively in the Electron runtime itself and must be taken as an Electron version upgrade. As a conditional risk-reduction measure only, organizations may assess whether the affected fuse-based same-signed-parent flags are actually enabled in their deployments; if they are not enabled, the specific attack path described in this CVE is not present. However, disabling those fuse flags is not recommended as a mitigation because it removes an active security hardening control. Full advisory at https://github.com/electron/electron/security/advisories/GHSA-jm7p-cc5g-qwxx and fix commit at https://github.com/electron/electron/commit/0a6291a97d210db3733689e70a51f5711e38ed35.

Affected VersionsENISA

electron 42.0.0-alpha.1, < 42.0.0-beta.3
electron < 39.8.8
electron 40.0.0-alpha.1, < 40.9.0
electron 41.0.0-alpha.1, < 41.2.1

Affected Packages

npm electron fix: 39.8.8, 40.9.1, 41.2.1, 42.0.0-beta.3
euvd electron_40_0_0_alpha_1 fix: 40.9.0
euvd electron_41_0_0_alpha_1 fix: 41.2.1
euvd electron_42_0_0_alpha_1 fix: 42.0.0-beta.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a TOCTOU race condition (CWE-367) in Electron's macOS parent-process identity verification. The original code in shell/app/node_main.cc called getppid() to obtain the parent PID, then passed that PID to shell/common/mac/codesign_util.cc using kSecGuestAttributePid with Apple's Security framework to compare code signatures. PIDs are ephemeral - once the legitimate parent exits, its PID can be recycled by an attacker-controlled process, causing Electron to evaluate the attacker's code signature in place of the true parent's. The fix switches to macOS audit tokens (audit_token_t), retrieved via task_name_for_pid() and TASK_AUDIT_TOKEN, which are bound to a single process instance incorporating a per-exec version counter and cannot be spoofed by PID reuse or exec-into-different-image attacks. The lookup attribute changes from kSecGuestAttributePid to kSecGuestAttributeAudit. CPE cpe:2.3:a:electron:electron covers all affected npm/electron package versions prior to the patched releases.

Know when Electron gets its next vulnerability

  • 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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.3 MEDIUM

Local-only TOCTOU race requires PR:L account and AC:H timing; C:H and I:H reflect TCC and keychain inheritance; no availability impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Aug 05, 2026 - 16:17 EUVD
CVE Published
Aug 05, 2026 - 15:21 cve.org
MEDIUM 6.3

DescriptionCVE.org

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, the check Electron uses on macOS to confirm it was launched by a same-signed parent process could be bypassed by a local process. Apps that enable fuse-based hardening restricting ELECTRON_RUN_AS_NODE and NODE_OPTIONS to same-signed parents rely on this check, and a local attacker could bypass it and run code inside the signed app, inheriting its TCC permissions and keychain access. This issue is fixed in 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
High
widely used desktop app framework powering VS Code, Slack, Discord
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2018-1000006 HIGH POC
8.8 Jan 24

GitHub Electron versions 1.8.2-beta.3 and earlier, 1.7.10 and earlier, 1.6.15 and earlier has a vulnerability in the pro

CVE-2025-68669 CRITICAL POC
9.6 Dec 23

Remote code execution in 5ire 0.15.2 and earlier arises because the desktop AI assistant renders Mermaid diagrams with s

CVE-2025-67744 CRITICAL POC
9.6 Dec 16

Cross-site scripting in DeepChat's Mermaid diagram renderer escalates to full remote code execution on affected desktop

CVE-2025-66481 CRITICAL POC
9.6 Dec 09

Remote code execution in DeepChat 0.5.1 and below is possible through a cross-site scripting flaw in Mermaid diagram ren

CVE-2026-93922 HIGH POC
8.6 Sep 18

Stored cross-site scripting in SiYuan through 3.8.4 lets an attacker who can set a notebook name containing an HTML payl

CVE-2017-12581 HIGH POC
8.1 Aug 06

GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration bypass vulnerability. Rated hi

CVE-2018-15685 HIGH POC
8.1 Aug 23

GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and "nativeWindow

CVE-2018-1000136 HIGH POC
8.1 Mar 23

Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values

CVE-2024-39698 HIGH POC
7.5 Jul 09

electron-updater allows for automatic updates for Electron apps. Rated high severity (CVSS 7.5), this vulnerability is r

CVE-2026-70604 HIGH POC
7.4 Aug 05

Cross-origin read bypass in Electron's custom protocol handler exposes sensitive application data to remote pages via fe

CVE-2026-70611 MEDIUM POC
6.9 Aug 05

Native code execution outside the Chromium sandbox is achievable in Electron prior to 39.8.9, 40.9.2, 41.2.1, and 42.0.0

CVE-2020-4077 CRITICAL
9.9 Jul 07

In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, there is a context isolation bypass. Rated critical severity

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