Claude Code vulnerabilities: command injection
7 CVEs in 2026
August 2026
The Claude Code Studio server launched by the --studio option in cli-tool/src/sandbox-server.js binds to all interfaces on port 3444, permits cross-origin requests, and requires no authentication.
July 2026
Because the action checked out attacker-controlled pull request head branches, read .mcp.json from the working directory via default setting sources, and unconditionally enabled all project MCP servers via…
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.
May 2026
The folder trust determination logic used the git worktree commondir file without validating its contents.
February 2026
Claude Code failed to properly validate commands using piped sed operations with the echo command, allowing attackers to bypass file write restrictions.
Claude Code failed to properly validate directory changes when combined with write operations to protected folders.
Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command.
December 2025
Due to errors in parsing shell commands related to $IFS and short CLI flags, it was possible to bypass the Claude Code read-only validation and trigger arbitrary code execution.
November 2025
Due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system.
August 2025
It's possible to bypass the Claude Code confirmation prompts to read a file and then send file contents over the network without user confirmation due to an overly broad allowlist of safe commands.
An error in command parsing makes it possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command.
