Skip to main content
Vulnerability Database/CVE-2026-102672

CVE-2026-102672: Electron Race Condition Vulnerability

CVE-2026-102672 is a race condition flaw in Electron framework's macOS update process that lets local attackers redirect privileged writes to overwrite other applications. This article covers technical details, affected versions, and patches.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-102672 Overview

CVE-2026-102672 is a local race condition in Electron applications on macOS that rely on Squirrel.Mac-based automatic updates. The privileged ShipIt helper fails to bind the validated update target to a single canonical application-bundle path for the entire installation. A local attacker can exploit this time-of-check to time-of-use (TOCTOU) window to redirect the root-level write and overwrite files belonging to a different application. The flaw is tracked under [CWE-367] and fixed in Electron 39.8.10, 41.10.5, and 42.0.0-beta.2.

Critical Impact

A local attacker with low privileges can hijack a privileged install operation to overwrite arbitrary application bundles as root, enabling privilege escalation and persistent compromise of other macOS applications.

Affected Products

  • Electron on macOS using Squirrel.Mac-based automatic updates, versions prior to 39.8.10
  • Electron on macOS using Squirrel.Mac-based automatic updates, versions prior to 41.10.5 in the 41.x branch
  • Electron on macOS using Squirrel.Mac-based automatic updates, versions prior to 42.0.0-beta.2 in the 42.x branch

Discovery Timeline

  • 2026-10-13 - CVE CVE-2026-102672 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-102672

Vulnerability Analysis

Squirrel.Mac is the auto-update framework used by Electron applications on macOS. Updates are applied by ShipIt, a helper process that runs with elevated privileges to replace application bundles under protected locations such as /Applications. The vulnerability stems from ShipIt re-resolving the target bundle path at multiple points during installation instead of pinning it once at the start. During this window, a local attacker can manipulate filesystem state so that the privileged write operation lands on a different application bundle than the one that initiated the update. The result is an unauthorized root-level overwrite of files belonging to an unrelated application.

Root Cause

The root cause is a classic time-of-check to time-of-use flaw [CWE-367]. The validated target bundle path is not persisted as the single canonical destination for the full installation sequence. Subsequent lookups during the install phase can resolve to a different bundle if the attacker alters the filesystem between validation and the privileged write.

Attack Vector

Exploitation requires local access and the ability to influence filesystem state while an update is in progress, so user interaction with the vulnerable updater is necessary. The attack complexity is high because the attacker must win a narrow race. Only macOS Electron applications that use Squirrel.Mac-based auto-updates are affected. Applications on Windows, Linux, or macOS applications that do not use Squirrel.Mac-based updates are not impacted.

text
# Upstream patch set added to Electron's Squirrel.Mac patch series
use_uttype_class_instead_of_deprecated_uttypeconformsto.patch
fix_clean_up_orphaned_staged_updates_before_downloading_new_update.patch
fix_trigger_shipit_mach_service_after_smjobsubmit_to_unblock.patch
+fix_resolve_target_bundle_path_once_at_start_of_install.patch

Source: GitHub Commit 15e2928. The patch fix_resolve_target_bundle_path_once_at_start_of_install.patch eliminates the race by resolving and binding the target bundle path a single time at the start of installation. Equivalent patch entries appear in GitHub Commit 01faabf and GitHub Commit a0f9ff4 for the 39.x, 41.x, and 42.x branches respectively.

Detection Methods for CVE-2026-102672

Indicators of Compromise

  • Unexpected modifications to .app bundles under /Applications with a modification timestamp aligned to a ShipIt run for a different Electron application.
  • Presence of staged update artifacts in ~/Library/Caches/<bundle-id>.ShipIt/ referencing bundle paths that do not match the application that initiated the update.
  • ShipIt process invocations writing to application bundle paths outside the originating Electron application's own install location.

Detection Strategies

  • Monitor execution of the ShipIt helper and correlate the parent Electron application bundle identifier with the target path of subsequent root-level writes.
  • Alert on filesystem events where a privileged process rewrites an application bundle whose CFBundleIdentifier differs from the invoking updater's parent application.
  • Detect symlink creation, rename operations, or directory swaps under paths used by Squirrel.Mac staging directories while an update is actively running.

Monitoring Recommendations

  • Enable macOS Endpoint Security event collection for ES_EVENT_TYPE_NOTIFY_RENAME, ES_EVENT_TYPE_NOTIFY_LINK, and ES_EVENT_TYPE_NOTIFY_WRITE on application bundle paths.
  • Log and retain ShipIt process arguments, effective UID, and target install paths for later correlation.
  • Review auto-update telemetry from Electron applications in the fleet to identify builds still running pre-patch Squirrel.Mac versions.

How to Mitigate CVE-2026-102672

Immediate Actions Required

  • Upgrade affected Electron applications to 39.8.10, 41.10.5, or 42.0.0-beta.2 or later and ship new builds to end users.
  • Inventory internally developed and third-party Electron applications on macOS to identify any that bundle a vulnerable Squirrel.Mac version.
  • Restrict local account access on multi-user macOS systems to reduce the pool of users who could race the ShipIt helper.

Patch Information

The upstream fix is tracked in GitHub Pull Request 50745 and documented in GitHub Security Advisory GHSA-vv43-5jgx-7qv8. Patched releases are available at GitHub Release v39.8.10, GitHub Release v41.10.5, and GitHub Release v42.0.0-beta.2. The underlying change, fix_resolve_target_bundle_path_once_at_start_of_install.patch, resolves the target bundle path once at the start of install and uses the pinned path for the remainder of the installation.

Workarounds

  • Disable Squirrel.Mac-based automatic updates in affected Electron applications until a patched build can be deployed.
  • Deliver updates through an alternative distribution channel such as an MDM-managed package install or a signed .pkg installer.
  • Limit interactive logins on shared macOS endpoints so that no untrusted local user is present while an update runs.
bash
# Verify the Electron version embedded in a macOS application bundle
/Applications/<YourApp>.app/Contents/Frameworks/Electron\ Framework.framework/Versions/A/Resources/Info.plist
defaults read "/Applications/<YourApp>.app/Contents/Frameworks/Electron Framework.framework/Resources/Info" CFBundleShortVersionString

# Confirm the version is >= 39.8.10, 41.10.5, or 42.0.0-beta.2 before re-enabling Squirrel.Mac auto-updates

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.