Intel

AIKIDO-2026-477020

electron is vulnerable to Race Condition (TOCTOU)

CVE-2026-102672Published Sep 21, 2026
September 21, 2026

67

CVE Score

Medium

Race Condition (TOCTOU)

Are you affected? Scan for Free

TL;DR

Electron bundles the Squirrel.Mac auto-update framework on macOS, and its privileged ShipIt helper performs the final step of an update while running as root. A time-of-check to time-of-use race in that step lets a local process cause ShipIt to overwrite a different application's files as root instead of the app that started the update. Exploitation requires local access to the machine and only affects apps that ship Squirrel.Mac based auto-updates. The fix closes the race so ShipIt operates only on the application that initiated the update.

How do I fix this?

Upgrade the electron library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you ship Squirrel.Mac based auto-updates on macOS.

Package

Versions

0.0.1 - 39.8.9

Fixed in 39.8.10

40.0.0 - 41.10.4

Fixed in 41.10.5

Background info

electron is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 39.8.9 and 40.0.0 - 41.10.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea