Skip to main content
VulnerabilityPublished

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

Affects @anthropic-ai/claude-codeSource GCVE Database

0
Compare
Authoritative record:CVE-2026-88968· High 7.7

Not known to be exploited · CVSS 7.7 High : upgrade to 2.1.251 soon.

Data as of 9 Nov 2026, 23:24 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.07.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npm@anthropic-ai/claude-codeAffected
  • <2.1.251
Fixed in
  • 2.1.251

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.

References

Community reviews

Loading reviews…