CVE-2025-54794
Description
Claude Code is an agentic coding tool. In versions below 0.2.111, a path validation flaw using prefix matching instead of canonical path comparison, makes it possible to bypass directory restrictions and access files outside the CWD. Successful exploitation depends on the presence of (or ability to create) a directory with the same prefix as the CWD and the ability to add untrusted content into a Claude Code context window. This is fixed in version 0.2.111.
How to fix
- anthropic claude_code0.2.111 or later
- @anthropic-ai/claude-code0.2.111 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| anthropic claude_code | v < 0.2.111 | 0.2.111 |
| @anthropic-ai/claude-codenpm | v < 0.2.111 | 0.2.111 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.