GHSA-66q4-vfjg-2qhh · Severity: high · Ecosystem: npm — Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection
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.
Conclusion & alert: CVE-2026-25722 is rated Moderate Risk (40.5/100): CVSS High severity, with low exploitation likelihood (EPSS 0.36%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.19% | 0.36% | +0.17% |
| 2 | 2026-05-31 | 0.14% | 0.19% | +0.05% |
| 3 | 2026-04-15 | — | 0.14% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.7 | 4.0 | HIGH |
|
— | — | [email protected] |
| 9.1 | 3.1 | CRITICAL |
|
3.9 | 5.2 | [email protected] |
GHSA-66q4-vfjg-2qhh · Severity: high · Ecosystem: npm — Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| anthropic | claude_code | < 2.0.57 | cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh | Vendor Advisory |