# CVE-2026-88968: Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-11-03T20:08:47.362Z
- Modified: 2026-11-09T23:00:03.851Z
- Also known as: GHSA-5xjx-9qx6-jcrv
- Weaknesses: CWE-59, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- anthropics claude-code: < 2.1.251
- @anthropic-ai/claude-code (npm): before 2.1.251

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv> (web)
- <https://github.com/anthropics/claude-code/releases/tag/v2.1.251> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-88968> (advisory)
- <https://github.com/anthropics/claude-code> (package)

## Sources

- CVE List: [CVE-2026-88968](https://www.cve.org/CVERecord?id=CVE-2026-88968), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-5xjx-9qx6-jcrv](https://github.com/advisories/GHSA-5xjx-9qx6-jcrv), CC-BY-4.0, modified 2026-11-09
- NVD: [CVE-2026-88968](https://nvd.nist.gov/vuln/detail/CVE-2026-88968), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-88968 · Whole record: https://cve.day/CVE-2026-88968.json · Rebuilt by cve.day 2026-11-25T22:59:48.620Z
