GHSA-jh7p-qr78-84p7

Suggest an improvement
Source
https://github.com/advisories/GHSA-jh7p-qr78-84p7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-jh7p-qr78-84p7/GHSA-jh7p-qr78-84p7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jh7p-qr78-84p7
Aliases
  • CVE-2026-21852
Published
2026-01-21T01:00:31Z
Modified
2026-02-03T03:11:19.470547Z
Severity
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation
Details

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 ANTHROPICBASEURL 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.

Database specific
{
    "github_reviewed_at": "2026-01-21T01:00:31Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-522"
    ],
    "github_reviewed": true,
    "nvd_published_at": "2026-01-21T21:16:08Z"
}
References

Affected packages

npm / @anthropic-ai/claude-code

Package

Name
@anthropic-ai/claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.65

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-jh7p-qr78-84p7/GHSA-jh7p-qr78-84p7.json"