SecurityContext

CVE-2026-21852: Claude Code - Information Disclosure

  • Cve: CVE-2026-21852
  • Name: Claude Code - Information Disclosure
  • 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.
  • Impact: Attackers can exfiltrate users' Anthropic API keys, leading to unauthorized access and potential misuse of API resources.
  • Remediation: Update to version 2.0.65 or the latest available version.
  • Vulnerability type: information_disclosure
  • Vulnerability impact: information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs user to open a malicious repository
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.27504
  • Epss percentile: 0.98118
  • Assignee: [email protected]
  • Published at: 2026-01-21T21:16:08Z
  • Age in days: 307
  • Modified at: 2026-06-17T10:19:01Z
  • Patch available: yes
  • Public exploits total: 4
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-21852
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd

Cwe

IdName
CWE-522Insufficiently Protected Credentials

Hackerone

  • Reports: 4
  • Rank: 2839

Public exploits

Same in every row:

  • Source: poc-in-github
UrlAdded date
https://github.com/abhishek2512mishra/claude-code-security-audit2026-09-13
https://github.com/Perufitlife/dotclaude-security2026-06-21
https://github.com/TreRB/ai-ide-config-guard2026-04-20
https://github.com/atiilla/CVE-2026-21852-PoC2026-02-27

References

UrlSourceTags
https://github.com/anthropics/claude-code/security/advisories/GHSA-jh7p-qr78-84p7nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
anthropic:claude_code< 2.0.65nonvd/v1/products/anthropic/claude_code

Projects

RepositoryLink kindsIndexedUrl
anthropics/claude-codepackage, security_advisoryyes/v1/repositories/anthropics/claude-code

Index

  • Repositories: 2
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 4
  • Public exploit first date: 2026-02-27
  • Remote: yes
  • Hackerone reports: 4
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts