Documented Incident · INC-2026-21852 · High severity
Agentic Coding CLI Project-Level API Base URL Override Exfiltrating API Keys
CVE-2026-21852 (published January 21, 2026, disclosed by Check Point Research) revealed an API-key exfiltration vector in Claude Code caused by honoring project-level configuration overrides for outbound API endpoints (`ANTHROPIC_BASE_URL` or equivalent project settings). If a developer opened a maliciously crafted repository containing an attacker-specified API endpoint URL, outbound inference requests could transmit the developer's authenticated API key and workspace context to an adversary-controlled server before confirmation. Anthropic restricted sensitive endpoint-override settings so untrusted project configs cannot redirect authenticated API credentials.
Incident dossier metadata
- Case ID
INC-2026-21852- Classification
- Incident
- Date
- Severity
- High
- Sector
- Software Development & AI Tooling
- Attack vector
- Data Exfiltration
- System type
- Terminal Agentic Coding CLIs
- CVE / reference
CVE-2026-21852- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-21852
Defensive takeaway
Never allow repository-level configuration files to override outbound API base URLs, proxy settings, or authentication destinations.
Mapped AI security techniques
- Unsecured Credentials AML.T0055
- Credentials from AI Agent Configuration AML.T0083
- AI Service API AML.T0096
- AI Agent Tool Credential Harvesting AML.T0098
- Machine Compromise: Local AI Agent AML.T0112.000
Mapped defensive controls
Source citation records
- NVD Record CVE-2026-21852: Claude Code Project API Endpoint Override Key Theft · NIST National Vulnerability Database (NVD) ·