{"id":"GHSA-5xjx-9qx6-jcrv","revision":"a0675248e0b245edb443cdf617f9c1a8","records":[{"revision":"a0675248e0b245edb443cdf617f9c1a8","observedAt":"2026-11-10T00:02:23.885+00:00","statement":{"source":"osv","id":"GHSA-5xjx-9qx6-jcrv","aliases":["CVE-2026-88968"],"title":"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","description":"Claude 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 the workspace. Exploiting this required the ability to run attacker-controlled code inside the sandbox, such as through a malicious repository or dependency script.\n\nUsers on standard Claude Code auto-update have received this fix automatically. Users performing manual updates are advised to update to the latest version.\n\nClaude Code thanks hackerone.com/mahoraga007 (Sunder Singh) for reporting this issue.","state":0,"publishedAt":"2026-11-09T22:42:03+00:00","modifiedAt":"2026-11-09T23:00:03.851746+00:00","affected":[{"ecosystem":"npm","name":"@anthropic-ai/claude-code","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.1.251"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv","https://nvd.nist.gov/vuln/detail/CVE-2026-88968","https://github.com/anthropics/claude-code","https://github.com/anthropics/claude-code/releases/tag/v2.1.251"],"sourceUrl":"https://github.com/advisories/GHSA-5xjx-9qx6-jcrv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5xjx-9qx6-jcrv","identifiers":["GHSA-5xjx-9qx6-jcrv","CVE-2026-88968"]},"retained":false,"historicalAffected":[]}],"coverage":[]}