GHSA-jh7p-qr78-84p7 · Severity: medium · Ecosystem: npm — Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation
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.
Conclusion & alert: CVE-2026-21852 is rated Low Risk (25.8/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-02-03 | 0.05% | 0.04% | -0.01% |
| 2 | 2026-01-27 | 0.04% | 0.05% | +0.01% |
| 3 | 2026-01-22 | — | 0.04% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.3 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-jh7p-qr78-84p7 · Severity: medium · Ecosystem: npm — Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| anthropic | claude_code | < 2.0.65 | cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-jh7p-qr78-84p7 | Vendor Advisory |