CVE-2026-25725 in Anthropic Claude Code
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 prot...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Anthropic | Claude Code | < 2.1.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-25725 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-276038-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2026-02-06 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-501: CWE-501
CWE-668: CWE-668
Analysis AI-written, not human-reviewed
CVE-2026-25725 affects Claude Code versions prior to 2.1.2, where the bubblewrap sandboxing mechanism fails to protect the .claude/settings.json configuration file if it does not exist at startup, leading to potential unauthorized access or modification.
An attacker with local access to the system where Claude Code is running could exploit this vulnerability to create or modify the .claude/settings.json file, potentially leading to unauthorized configuration changes or access to sensitive data.
Questions
What is CVE-2026-25725?
CVE-2026-25725 affects Claude Code versions prior to 2.1.2, where the bubblewrap sandboxing mechanism fails to protect the .claude/settings.json configuration file if it does not exist at startup, leading to potential unauthorized access or modification.
What is the CVSS score for CVE-2026-25725?
CVE-2026-25725 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.7%.
Is CVE-2026-25725 actively exploited?
No confirmed active exploitation of CVE-2026-25725 as of 2026-09-25.
How do I remediate CVE-2026-25725?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-25725?
CVE-2026-25725 affects Anthropic Claude Code.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Anthropic","product":"Claude Code","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.