{"id":"CVE-2026-88968","published":"2026-11-03T20:08:47Z","modified":"2026-11-03T21:29:17Z","title":"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00317,"percentile":0.25325,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.251","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":5.06},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 2.1.251"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-03T21:29:03.036554Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<2.1.251"],"patched":["2.1.251"],"from":["GHSA-5xjx-9qx6-jcrv"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-116209","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-54316","published":"2026-06-23","fixed":"2.1.163","kev":false},{"cve":"CVE-2026-55607","published":"2026-06-29","fixed":"2.1.163","kev":false},{"cve":"CVE-2026-86063","published":"2026-10-13","fixed":"2.1.179","kev":false,"link":{"from":"CVE-2026-86063","to":"CVE-2026-88968","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.1.179","toFixed":"2.1.251","daysApart":21}]}},{"cve":"CVE-2026-88968","published":"2026-11-03","fixed":"2.1.251","kev":false}],"package":"npm:@anthropic-ai/claude-code"}}