THREATPORT/VULNERABILITY/CVE-2026-21852
HIGH SEVERITY

CVE-2026-21852

Claude Code vulnerability

CVSS
7.5
EPSS
23.0%
EPSS pct
98th
Exploited
No known
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.
Affected vendor
Anthropic
Affected product
Claude Code
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness type (CWE)
  • CWE-522 — Insufficiently Protected Credentials
Published
2026-01-21

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, no user interaction. Successful exploitation leads to high impact to confidentiality.

Its EPSS score of 23.0% reflects a moderate probability of exploitation activity in the wild over the next 30 days, placing it above 98% of all scored CVEs.

Check your external exposure to CVE-2026-21852

  • Confirm whether Anthropic Claude Code is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2026-21852.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2026-21852

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2026-21852 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2026-21852?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2026-21852.

Start free scan

No credit card. Agentless.