Claude Code vulnerabilities: path traversal
4 CVEs in 2026
October 2026
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.
June 2026
Claude Code's worktree handling allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks.
April 2026
Claude Code's sandbox did not prevent sandboxed processes from creating symlinks pointing to locations outside the workspace.
February 2026
Due to a Bash command validation flaw in parsing ZSH clobber syntax, it was possible to bypass directory restrictions and write files outside the current working directory without user permission prompts.
August 2025
A path validation flaw using prefix matching instead of canonical path comparison, makes it possible to bypass directory restrictions and access files outside the CWD.
