AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

AnthropicGHSA-jh7p-qr78-84p7

Anthropic: information disclosure

Anthropic

CVE-2026-21852 · Published Jan 20, 2026

Medium5.3
Fix: upgrade to v2.0.65 or later
GitHub advisory

A vulnerability in Claude Code's project-load flow allowed malicious repositories to exfiltrate data including Anthropic API keys before users confirmed trust. If a user started Claude Code in an attacker-controller repository, and the repository included a settings file that set ANTHROPIC_BASE_URL to an attacker-controlled endpoint, Claude Code would issue API requests before showing the trust prompt, including 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 the latest version.

Affected versions

PackageAffectedFixed in
@anthropic-ai/claude-code
npm
< v2.0.65v2.0.65
Details and references
CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-200, CWE-522

More Anthropic advisories

All Anthropic