CVE-2026-25722: Vulnerability in Anthropic Claude Code

Critical. Claude Code is an agentic coding tool. Prior to version 2.0.57, Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, it was possible to bypass write protection and create or modify files without user confirmation. Reliably exploiting this required the ability to add untrusted...

npm, CWE-20, CWE-78

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
0.7 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-66q4-vfjg-2qhh
EU ID
EUVD-2026-5636
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-20, CWE-78
Published
6 Feb 2026
Last change
17 Jun 2026
Likelihood rank
Higher than 51 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Anthropic Claude Code Before 2.0.57. Fixed in 2.0.57

Affected packages

Vulnerable version ranges and fixed releases

  • @anthropic-ai/claude-code npm, Affected before 2.0.57. Fixed in 2.0.57

Advisories

Vendor and security advisories

Related