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.
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.
How to check
- Affected: @anthropic-ai/claude-code (npm) below 2.1.129.
- Anthropic says users on standard auto-update already have the fix; manual installs should check their version.
How to fix
- Update Claude Code to 2.1.129 or later.
- Avoid running Claude Code in workspaces that other, less-trusted users can write to.
claude --version
npm install -g @anthropic-ai/claude-code@latest Sources
- criticalMalicious npm packages posing as AI SDKs and MCP tools: tavern-ai-sdk and persona-ai-sdk run obfuscated loaders on import behind VM detection, and tzero-mcp 12.3.0 is flagged as malware
- criticalCVE-2026-136441: Bytebase DBHub MCP server authentication bypass through untrusted SQL, published by ZDI as a 0-day with no fix listed
- criticalMalicious npm packages posing as AI agent tools: agentic-awesome-skills, x402-prompt-injection-scan and formatting-subtitles-for-claude
- criticalLiteLLM 1.107.0 on PyPI and Docker was malware: a credential stealer that runs whenever Python starts