Skip to main content

Electron CVE-2026-70597

| EUVDEUVD-2026-53403 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
Share

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

4
Patch available
Aug 05, 2026 - 16:17 EUVD
Source Code Evidence Fetched
Aug 05, 2026 - 15:52 vuln.today
Analysis Generated
Aug 05, 2026 - 15:52 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

CVE-2023-23623 CRITICAL
9.8 Sep 06

Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Rated c

CVE-2022-29247 CRITICAL
9.8 Jun 13

Electron is a framework for writing cross-platform desktop applications using JavaScript (JS), HTML, and CSS. Rated crit

CVE-2026-70610 MEDIUM POC
5.4 Aug 05

Prototype pollution via Electron's contextBridge allows untrusted renderer-side web content to smuggle a malicious proto

CVE-2020-4076 CRITICAL
9.0 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

Share

CVE-2026-70597 vulnerability details – vuln.today

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