@ANTHROPIC-AI/CLAUDE-CODE · CVE-2026-103435 · AI agents & MCP
FIX → 2.1.129
Claude Code checked that a file path stayed inside the project folder, then resolved the path again at write time without rechecking. An attacker with write access to the shared workspace can swap a project file for a symlink and redirect Claude Code's writes to files outside the project, such as shell configuration files.
first public Oct 5, 2026 · 2 sources
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Teams running Claude Code on a shared workspace where a lower-privileged user can write to project files alongside a higher-privileged session. Standard auto-updated installs already have the fix; manual installs below the fixed version are exposed. Single-user machines with no shared write access are at much lower risk.
Not affected if auto-update, single-user-workspace, version-2.1.129-or-later
Who cares claude-code, linux, macos, npm, shared-workspace, windows
claude --version; versions below 2.1.129 are affected.npm ls @anthropic-ai/claude-code.Upgrade to 2.1.129
@anthropic-ai/claude-code 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.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
2.1.129This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.