Skip to content
HighVulnerabilityLLM-specific

CVE-2026-21852: Claude Code project-load flow leaks API keys before trust prompt

Identifier
CVE-2026-21852
Published
Record updated
View JSON
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.