← All advisories
CVE-2026-103435highBroken access control2026-10-05

CVE-2026-103435: Claude Code could be raced into writing files outside the project

Claude Code checked that a file path was inside the project at permission time but resolved it again at write time. Someone who can write to a shared workspace could swap a file for a symlink and redirect Claude Code’s edits to files like your shell config.

01.

What it is

GitHub advisory: 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.”

An attacker with write access to the workspace could atomically replace a project file with a symlink, so the write lands on an arbitrary file outside the project sandbox.

Exploiting it needs both write access to the shared workspace and winning a race against the write. The realistic case is a lower-privileged user redirecting edits made in a higher-privileged session.

02.

How to check

  1. Affected: @anthropic-ai/claude-code (npm) below 2.1.129.
  2. Anthropic says users on standard auto-update already have the fix; manual installs should check their version.
03.

How to fix

  1. Update Claude Code to 2.1.129 or later.
  2. Avoid running Claude Code in workspaces that other, less-trusted users can write to.
claude --version
npm install -g @anthropic-ai/claude-code@latest
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

New advisories, CVEs and fixes for Lovable, Bolt, v0, Replit, Base44 and Cursor apps. No roundups of things you already read.

Free. The list is new, so the first issues go out once there are readers. Unsubscribe from any email in one click. We never sell or share addresses.