LIVE LOG · entries last verified against sources between October 14 and November 6, 2026 · site updated Nov 6, 2026, 2:19 PM ET

← All incidents

CVE-2026-88968: on macOS, code inside Claude Code's sandbox could make the Edit tool overwrite files outside the workspace

Vulnerability · Claude Code · HIGH

Incident dateNot stated
DisclosedOct 26, 2026 (Anthropic advisory GHSA-5xjx-9qx6-jcrv). Fix released Aug 28, 2026 in 2.1.251. Not yet in NVD as of the morning of Oct 26, 2026.
Added hereOct 26, 8:45 AM ET
Last verifiedOct 26, 2026

Summary

Anthropic published advisory GHSA-5xjx-9qx6-jcrv (CVE-2026-88968) for Claude Code on Oct 26, 2026. Claude Code checked where an Edit was going by resolving the path and any symlinks at one moment, but the check was not tied to the actual folder it then wrote into. On macOS, a process running inside Claude Code's Bash sandbox could swap a folder inside the workspace for a symlink right after the check passed, so the Edit tool, which runs outside the sandbox, overwrote a file of the attacker's choosing elsewhere on the machine. Anthropic says exploiting it required running attacker-controlled code inside the sandbox, for example through a malicious repository or dependency script. Versions before 2.1.251 are affected. Anthropic says users on standard auto-update already have the fix, and 2.1.251 was released on Aug 28, 2026. We found no reports of exploitation.

Severity

HIGH Anthropic rates it High, with CVSS 4.0 7.7. The result is a write to any file the user can write outside the workspace, which escapes the purpose of the sandbox and can lead to code execution through files such as shell configuration. It needs attacker code already running inside the sandbox, a won race, and macOS. Fixed since Aug 28, 2026.

Kit, our email provider, gets your address only to send the newsletter. Every email has an unsubscribe link. Privacy policy.

Timeline

  1. Aug 28, 2026 (UTC)
    Claude Code 2.1.251 is published to npm and released on GitHub. Anthropic's advisory lists it as the patched version.
  2. Oct 26, 2026 (UTC)
    Anthropic publishes GHSA-5xjx-9qx6-jcrv (CVE-2026-88968) for @anthropic-ai/claude-code: versions before 2.1.251 affected.

How it happened

This is a time-of-check to time-of-use (TOCTOU) bug, similar in kind to CVE-2026-103435 earlier this year. Claude Code's Bash tool can run commands inside a sandbox, but its Edit tool writes files from the main, unsandboxed process. Before an edit, Claude Code resolved the target path and its symlinks to make sure it stayed inside the workspace. Per Anthropic, that check was not bound to the directory inodes or file descriptors it would actually write through. A process inside the sandbox could therefore atomically replace a parent folder inside the workspace with a symlink after the check, and the edit followed the symlink to a user-writable file outside it. Anthropic lists CWE-59 (link following) and CWE-367 (TOCTOU race) and credits Sunder Singh (HackerOne user mahoraga007) with the report. NVD had no record for the CVE yet on the morning of Oct 26, 2026. CVSS 4.0 7.7 High (Anthropic, GHSA-5xjx-9qx6-jcrv). NVD had no score for it on Oct 27, 2026.

How to check your app

Sources

Corrections and updates

None. Re-checked against every source on Oct 26, 2026.

Cite this entry
Title
CVE-2026-88968: on macOS, code inside Claude Code's sandbox could make the Edit tool overwrite files outside the workspace
Added
Oct 26, 2026
URL
https://vibeincidents.com/incidents/claude-code-edit-toctou-macos-cve-2026-88968/
Suggested citation
VibeIncidents. "CVE-2026-88968: on macOS, code inside Claude Code's sandbox could make the Edit tool overwrite files outside the workspace." Oct 26, 2026. https://vibeincidents.com/incidents/claude-code-edit-toctou-macos-cve-2026-88968/