CVE-2026-88968
HIGH 7.7CVSS 4.0Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
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.
- Published
- 3 Nov 2026
- Last modified
- 9 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-367CWE-59
- Also known as
- GHSA-5xjx-9qx6-jcrv
- Sources
- NVDJSONOSV GHSA-5xjx-9qx6-jcrvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @anthropic-ai/claude-code | < 2.1.251 | 2.1.251 |
References
- https://github.com/anthropics/claude-code/releases/tag/v2.1.251 · WEB
- https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-88968 · ADVISORY
- https://github.com/anthropics/claude-code · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 3 Nov 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Nov 2026)