Security AffairsPierluigi Paganini
Anthropic's Claude Code AI exploited by repos to steal API keys
Untrusted repositories turn Claude code into an attack vector reports that flaws in Anthropic’s Claude Code could allow remote code execution and theft of API keys when users open untrusted repositories. Check Point Research found multiple vulnerabilities that abuse features such as Hooks, MCP servers, and environment variables to run arbitrary shell commands and exfiltrate Anthropic API credentials simply by cloning and opening a malicious project.
According to Check Point Research, the critical vulnerabilities CVE-2025-59536 and CVE-2026-21852 enable remote code execution and API key theft through repository-level configuration files. Researchers warned that Claude Code’s project-level configuration files can act as an execution layer, allowing a single malicious repository to trigger abuse and pivot from a developer’s workstation into shared enterprise cloud environments without visible warning.
Anthropic addressed the issues by tightening trust prompts, blocking external tool execution, and restricting API calls until user approval, as the article notes, while highlighting that AI-powered coding tools demand reassessed security boundaries as configuration files can influence execution, networking and permissions. The piece is dated 25 February 2026.
Story timeline CVE-2025-59536
Full timelineShow as table
| Published (UTC) | Outlet | Headline |
|---|---|---|
| Wed 25 Feb · 14:26 UTC | Check Point | Check Point finds API key leak in Anthropic's AI code assistant |
| Wed 25 Feb · 17:46 UTC | The Hacker News | Anthropic's Claude Code AI bugs let attackers run code and steal API keys |
| Wed 25 Feb · 22:43 UTC | Security Affairs | Anthropic's Claude Code AI exploited by repos to steal API keys (this article) |
| Wed 25 Feb · 22:43 UTC | Dark Reading | Anthropic’s Claude Code flaws let repos seize PCs, steal keys |
| Tue 24 Mar · 21:58 UTC | Dark Reading | How AI Coding Tools Crushed the Endpoint Security Fortress |
| Thu 7 May · 13:32 UTC | Dark Reading | One‑click TrustFall exploit hijacks Claude Code via bad repo |