CVE-2026-21852
Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation
描述
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.
如何修補 CVE-2026-21852
要修補 CVE-2026-21852,請將受影響套件升級到下列已修補版本。
- —升級至 2.0.65 或更新版本
CVE-2026-21852 正在被利用嗎?
中等 — EPSS 為 23.0%,可持續追蹤但非最高優先。
受影響套件(1)
- from 0, < 2.0.65
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | 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 |