CVE-2026-21852: anthropic claude_code Insufficiently Protected Credentials
Vulnerability summary
CVE-2026-21852 is a high (CVSS 7.5) Insufficiently Protected Credentials vulnerability in anthropic claude_code. EPSS estimates a 27.50% chance of exploitation in the next 30 days, higher than 98% of scored vulnerabilities.
Timeline
- 21-01-2026PublishedVulnerability first disclosed.
- 21-01-2026Last modifiedVulnerability information updated.
Description
Claude Code is an agentic coding tool. Prior to version 2.0.65, vulnerability in Claude Code's project-load flow allowed malicious repositories to exfiltrate data including Anthropic API keys before users confirmed trust. An attacker-controlled repository could include a settings file that sets ANTHROPIC_BASE_URL to an attacker-controlled endpoint and when the repository was opened, Claude Code would read the configuration and immediately issue API requests before showing the trust prompt, potentially leaking the user's API keys. Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to version 2.0.65, which contains a patch, or to the latest version.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
27.50%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
+1.20 pp
From 26.30% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
@anthropic-ai1 product
- claude-code< 2.0.65
Anthropic1 product
- claude_code< 2.0.65
Anthropics1 product
- claude-code< 2.0.65
3 vendors · 3 products
References
3 links- github.com/anthropics/claude-code/security/advisories/GHSA-jh7p-qr78-84p7X Refsource CONFIRMWEBVendor Advisory