Coding Tool Vulnerability in Claude Code by Anthropic
CVE-2026-21852
Key Information:
- Vendor
Anthropics
- Status
- Vendor
- CVE Published:
- 21 January 2026
Badges
What is CVE-2026-21852?
A vulnerability in Claude Code allowed malicious repositories to exfiltrate sensitive user data, including Anthropic API keys, before users could confirm trust. Attackers could leverage a compromised repository to adjust the configuration to point to their own server. Once the repository was opened by the user, Claude Code would automatically attempt to connect and issue API requests without displaying the necessary trust prompt, risking exposure of user credentials. Users should ensure they are using version 2.0.65 or later to mitigate this risk.
Affected Version(s)
claude-code < 2.0.65
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
