CVE-2026-25725: Vulnerability in Anthropic Claude Code

Critical. 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...

npm, CWE-501, CWE-668

Exploitation
None confirmed
Severity
10 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-ff64-7w26-62rf
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-501, CWE-668
Published
6 Feb 2026
Last change
17 Jun 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Anthropic Claude Code Before 2.1.2. Fixed in 2.1.2

Affected packages

Vulnerable version ranges and fixed releases

  • @anthropic-ai/claude-code npm, Affected before 2.1.2. Fixed in 2.1.2

Advisories

Vendor and security advisories

Related