All vulnerabilities
CVE-2026-103435GHSA-5j29-h97v-84ch

@anthropic-ai/claude-code: Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code

Anthropic @anthropic-ai/claude-code
CVSS
7.7High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.25%Chance of exploitation activity in the next 30 days, higher than 15% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in2.1.129Fixed versionCVE List
Published7 Oct 2026Updated 7 Oct 2026CVE List

What fixes it

  • 2.1.129@anthropic-ai/claude-codeCVE List
  • 2.1.129@anthropic-ai/claude-code, npmGitHubnpm install @anthropic-ai/claude-code@2.1.129

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Claude Code validated that a target file path resided within the project working directory at permission-check time, but re-resolved the path at write time without repeating that validation. This time-of-check to time-of-use (TOCTOU) gap allowed an attacker who could write to the workspace to atomically replace a project file with a symlink, causing Claude Code to follow the symlink and write its output to an arbitrary file outside the project sandbox. Exploitation required the ability to win a race condition against the write operation and write access to the shared workspace, enabling a lower-privileged attacker to redirect benign edits to sensitive files (e.g., shell configuration) in a higher-privileged session.

Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.

Thank you to hackerone.com/c_h4ck_0 for reporting this issue.

Text from GitHub Advisory Database

Affected versions 2

  • @anthropic-ai/claude-codeaffected: all versions before 2.1.129CVE List
  • @anthropic-ai/claude-code, npm< 2.1.129GitHub

References 1