Vulnerabilities · 2026 · Anthropic
CVE-2026-25722
Anthropic Claude Code vulnerability
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 content into a Claude Code context window. This issue has been patched in version 2.0.57.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Claude Code. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Anthropic Claude Code runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Anthropic products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.