CVE-2026-21852
Last modified
CVE-2026-21852 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 22.97% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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/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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Anthropic | Claude Code | < 2.0.65 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-21852?
How severe is CVE-2026-21852?
How do I fix CVE-2026-21852?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-21836The HCL DominoIQ RAG feature is affected by a Broken Access …6.5
- CVE-2026-21837HCL Digital Experience is affected by an OS command injectio…8.8
- CVE-2026-2184A vulnerability was detected in Great Developers Certificate…9.8
- CVE-2026-21840HCL BigFix Platform is affected by a user enumeration vulner…3.1
- CVE-2026-2185A flaw has been found in Tenda RX3 16.03.13.11. This issue a…8.8
- CVE-2026-21851MONAI (Medical Open Network for AI) is an AI toolkit for hea…5.3
- CVE-2026-21853AFFiNE is an open-source, all-in-one workspace and an operat…8.8
- CVE-2026-21854The Tarkov Data Manager is a tool to manage the Tarkov item …9.8
- CVE-2026-21855The Tarkov Data Manager is a tool to manage the Tarkov item …6.1
- CVE-2026-21856The Tarkov Data Manager is a tool to manage the Tarkov item …8.8
- CVE-2026-21857REDAXO is a PHP-based content management system. Prior to ve…6.5
- CVE-2026-21858n8n is an open source workflow automation platform. Versions…10
Are you affected by CVE-2026-21852?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
