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

Inspect INC-2026-21852 in Interactive Incidents & Cases Hub

Defensive takeaway

Never allow repository-level configuration files to override outbound API base URLs, proxy settings, or authentication destinations.

Mapped AI security techniques

Mapped defensive controls

Source citation records