{"id":"ghsa-ghsa-5xjx-9qx6-jcrv","seq":5742015,"kind":"advisory","title":"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","url":"https://github.com/advisories/GHSA-5xjx-9qx6-jcrv","permalink":"https://vulnpulse.app/items/ghsa-ghsa-5xjx-9qx6-jcrv","summary":"影響: npm:@anthropic-ai/claude-code < 2.1.251 → 2.1.251\nClaude Code validated Edit tool targets using point-in-time pathname and symlink resolution that was not bound to the underlying directory inodes or file descriptors. On macOS, a process running inside Claude Code's Bash sandbox could exploit the resulting time-of-check to time-of-use window by atomically swapping an in-workspace parent directory with a symlink after validation completed, causing the unsandboxed Edit implementation to overwrite an attacker-selected user-writable file outside th…","severity":"high","cvss":null,"techs":["nodejs","anthropic","macos"],"cves":["CVE-2026-88968"],"tags":["GHSA-5xjx-9qx6-jcrv","@anthropic-ai/claude-code"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-11-09T22:42:03.000Z","fetched_at":"2026-11-10T16:07:52.430Z"}