Vulnerabilities in Anthropic Claude Code Enable Code Execution and API Key Exfiltration
Emerging Technology Risk · 6 sources · Updated 5mo ago · First seen Feb 25, 2026

Security researchers disclosed multiple vulnerabilities in Anthropic’s Claude Code AI coding assistant that could enable arbitrary command execution and exfiltration of Anthropic API credentials when developers clone/open a malicious repository. Check Point Research reported the issues abuse Claude Code configuration and initialization paths—particularly project hooks (e.g., untrusted .claude/settings.json), Model Context Protocol (MCP) servers, and environment variables—to trigger shell command execution and data theft. Anthropic’s advisory for CVE-2026-21852 describes a project-load flow where a crafted repo can set ANTHROPIC_BASE_URL to an attacker-controlled endpoint, causing Claude Code to send API requests before the trust prompt is shown, potentially leaking the user’s API key.
The disclosed issues include two high-severity code-injection paths (CVSS 8.7) and one information-disclosure flaw (CVSS 5.3): a consent-bypass/hook-based injection issue fixed in Claude Code 1.0.87 (Sept 2025), CVE-2025-59536 fixed in 1.0.111 (Oct 2025), and CVE-2026-21852 fixed in 2.0.65 (Jan 2026). Separate coverage framed Anthropic-related developments as market-moving, noting investor attention around Anthropic’s AI code-security tooling; however, the actionable security impact in this reporting is the risk that simply opening an attacker-controlled repository can lead to RCE and credential leakage, reinforcing the need to treat untrusted repos and tool initialization behaviors as a supply-chain and developer-workstation risk.
Why it matters
Impact assessment
Claude Code users who open or clone untrusted repositories are exposed to developer-workstation compromise and Anthropic API credential theft. The primary affected population is software developers, security engineers, and CI/CD environments using Claude Code, with secondary risk to organizations whose source code, secrets, cloud-connected AI workflows, and build pipelines are reachable from those endpoints.
Impact severity is high because successful exploitation can execute attacker-controlled commands with the user’s full privileges, steal secrets such as SSH keys and tokens, install persistence, and redirect authenticated Anthropic API traffic to attacker infrastructure. Exposure is targeted rather than indiscriminate, but the trigger condition is low-friction: opening a crafted repository or invoking Claude Code in CI/CD can be sufficient, and reporting describes proof-of-concept exploitation against current Claude Code builds and zero-click CI/CD scenarios.
Supporting facts
- Affected product: Anthropic Claude Code CLI.
- Affected users: developers and organizations using Claude Code on workstations and in CI/CD pipelines.
- Trigger condition: cloning or opening a malicious repository in Claude Code.
- Reported outcomes: arbitrary command execution, API key exfiltration, theft of local secrets, access to other projects, backdoor installation, and command-and-control connectivity.
- Privilege level: MCP servers reportedly run as native OS processes with the full privileges of the user running Claude Code and are not sandboxed.
- CI/CD risk: Adversa reported a zero-click variant when Claude Code is invoked through an SDK without an interactive trust prompt.
- Scope: supply-chain style exposure through repository-contained configuration files such as
.claude/settings.jsonand.mcp.json. - Known activity: public proof-of-concept exploit “TrustFall” was demonstrated; references describe exploitation mechanics but do not cite broad in-the-wild criminal exploitation campaigns.
- Additional ecosystem note: one reference claims the broader attack class may affect Gemini CLI, Cursor CLI, and Copilot CLI, but the detailed validated exploitation in this story centers on Claude Code.
- Non-actionable reference: the meme/market coverage does not materially change the security impact assessment.
Entities
- Anthropic
- Claude Code
- Check Point Research
- Adversa AI
- Aviv Donenfeld
- Oded Vanunu
- Rony Utevsky
- Alex Polyakov
- Sergey Malenkovich


