HighVulnerabilityLLM-specific
CVE-2026-21852: Claude Code project-load flow leaks API keys before trust prompt
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-21852
- Published
- Record updated
- Affected
- @anthropic-ai/claude-code < 2.0.65
- Fixed in
- 2.0.65
- released December 10, 2025, 42 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 27.5%
Summary
Prior to version 2.0.65, Claude Code's project-load flow let a malicious repository exfiltrate data, including Anthropic API keys, before the user confirmed trust. A repository settings file could set ANTHROPIC_BASE_URL to an attacker-controlled endpoint, and Claude Code issued API requests on opening the repository, before the trust prompt appeared.
Mitigation
Fixed in 2.0.65, which contains a patch. Users on standard auto-update have already received the fix; users performing manual updates should update to version 2.0.65 or the latest version.
Coverage
News, research and other items that mention CVE-2026-21852.
- Is Claude Code safe for the enterprise? What the official settings cover, and what they don'tAdversa AI Blog · 2026-10-22
Topics
Related items
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor · NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor · NVD/CVE Database
- HighCVE-2026-62331: praktor path traversal via Telegram document upload filenamesSame vendor · NVD/CVE Database
- MediumGHSA-w4fh-qvv9-3v23: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverSame vendor · GitHub Advisory Database
- MediumGHSA-5h93-6whr-6q8j: Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodiesSame vendor · GitHub Advisory Database