7.5

CVE-2026-21852: anthropic claude_code Insufficiently Protected Credentials

CVSS: 7.5v3.1HighAnalyzed
AliasesGHSA-jh7p-qr78-84p7
Published 21-01-2026Last modified 21-01-2026

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.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
27.50%
0%100%
High · +1.20 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 21-01-2026
    PublishedVulnerability first disclosed.
  2. 21-01-2026
    Last 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

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

21-09-202621-10-2026
EPSS score
27.50%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

@anthropic-ai1 product
  • claude-code< 2.0.65
Anthropic1 product
Anthropics1 product

3 vendors · 3 products

References

3 links