Insufficiently protected credentials in Claude Code - CVE-2026-21852
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to exposure of sensitive information in the project-load flow when processing a repository settings file before trust confirmation. A remote attacker can provide a malicious repository that sets ANTHROPIC_BASE_URL to an attacker-controlled endpoint to disclose sensitive information.
User interaction is required to start Claude Code in an attacker-controlled repository.