CVE-2026-25725
Critical · 10.0CVSS
10.0
EPSS
0.7%
Published
Feb 6, 2026
CISA due date
—
The record
Claude Code is an agentic coding tool. Prior to version 2.1.2, Claude Code's bubblewrap sandboxing mechanism failed to properly protect the .claude/settings.json configuration file when it did not exist at startup. While the parent directory was mounted as writable and .claude/settings.local.json was explicitly protected with read-only constraints, settings.json was not protected if it was missing. This allowed malicious code running inside the sandbox to create this file and inject persistent hooks (such as SessionStart commands) that would execute with host privileges when Claude Code was restarted. This issue has been patched in version 2.1.2.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @anthropic-ai/claude-code | 0 | 2.1.2 |
Related vulnerabilities
- GHSA-ff64-7w26-62rf Claude Code has Sandbox Escape via Persistent Configuration Injection in settings.json Same vulnerability
- CVE-2026-54316 Claude Code is an agentic coding tool. Also affects @anthropic-ai/claude-code
- GHSA-fg94-h982-f3mm Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch Also affects @anthropic-ai/claude-code
- CVE-2026-40068 In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic… Also affects @anthropic-ai/claude-code
- GHSA-q5hj-mxqh-vv77 Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution Also affects @anthropic-ai/claude-code
- GHSA-vp62-r36r-9xqp Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside… Also affects @anthropic-ai/claude-code
- CVE-2026-39861 Claude Code is an agentic coding tool. Also affects @anthropic-ai/claude-code
- GHSA-5cwg-9f6j-9jvx Claude Code: Insecure System-Wide Configuration Loading Enables Local Privilege… Also affects @anthropic-ai/claude-code