CVE-2026-88968: Claude Code · TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
Affects @anthropic-ai/claude-codeSource GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 2.1.251 soon.
Data as of 9 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.7 |
|---|
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.1.251
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade @anthropic-ai/claude-code to 2.1.251.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@anthropic-ai/claude-code | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch fixing this vulnerability is available in Claude Code version 2.1.251. Users who rely on the standard Claude Code auto-update mechanism have already received this fix automatically. Users performing manual updates should upgrade to version 2.1.251 or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Description
CVE-2026-88968 is a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the Edit tool of Claude Code prior to version 2.1.251. It allows a process running inside Claude Code's Bash sandbox on macOS to overwrite files outside the intended workspace by exploiting a window between pathname validation and use, involving symlink swapping. This requires the attacker to have the ability to execute code inside the sandbox, such as via a malicious repository or dependency script. The issue has been fixed in version 2.1.251, and users on standard auto-update have already received the fix.