Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-21852— Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation

Quick assessment

Affected
anthropics claude-code
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Claude Code是Anthropic开源的一个代理编码工具。 Claude Code 2.0.65之前版本存在安全漏洞,该漏洞源于项目加载流程允许恶意存储库在用户确认信任前泄露数据,可能导致API密钥泄露。

AI Predicted 9.1 Difficulty: Easy EPSS 27.87% · P98
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-21852

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
不充分的凭证保护机制
Source: CVE Program / CVE List V5
Vulnerability Title
Claude Code 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Claude Code是Anthropic开源的一个代理编码工具。 Claude Code 2.0.65之前版本存在安全漏洞,该漏洞源于项目加载流程允许恶意存储库在用户确认信任前泄露数据,可能导致API密钥泄露。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
anthropics claude-code < 2.0.65 -

II. Public POCs for CVE-2026-21852

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-21852

请登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2026-21852

No comments yet


Leave a comment