CVE-2026-88968

GHSA-5xjx-9qx6-jcrv · published 3 Nov 2026 · updated 9 Nov 2026

Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

7.7HighCVSS 7.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in @anthropic-ai/claude-code 2.1.251.

Claude Code is an agentic coding tool. Prior to 2.1.251, the Edit tool validates a target using pathname and symlink resolution that is not bound to the underlying directory inode or file descriptor. On macOS, attacker-controlled code running in the Bash sandbox can atomically replace an in-workspace parent directory with a symlink after validation, causing the unsandboxed Edit implementation to overwrite a user-writable file outside the workspace. Exploitation requires attacker-controlled code to run inside the sandbox, such as from a malicious repository or dependency script. This issue is fixed in version 2.1.251.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
anthropics<2.1.251
npm: @anthropic-ai/claude-code<2.1.2512.1.251

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-88968 severity on Zeptric[![CVE-2026-88968](https://zeptric.io/badge/cve/CVE-2026-88968.svg)](https://zeptric.io/cve/CVE-2026-88968)