{
  "entry": {
    "kind": "vuln",
    "slug": "cve-2026-21852",
    "name": "CVE-2026-21852",
    "vendor": "Claude Code",
    "description": "Claude Code's project-load flow issued API requests, including auth headers, to ANTHROPIC_BASE_URL before showing a trust prompt, allowing a malicious repo's settings file to silently redirect all API calls to an attacker server and steal the developer's Anthropic API key. Discovered by Check Point Research; fixed in Claude Code v2.0.65 in January 2026.",
    "website": "https://thehackernews.com/2026/02/claude-code-flaws-allow-remote-code.html",
    "repository": null,
    "documentationUrl": null,
    "license": null,
    "version": null,
    "trustLevel": "advisory",
    "capabilities": [],
    "packaging": null,
    "configFiles": null,
    "category": "agent",
    "updatedAt": "2026-02-25",
    "risk": {
      "score": 75,
      "band": "high",
      "signals": [],
      "dangerousCombos": []
    },
    "dangerousCombos": [],
    "vuln": {
      "id": "CVE-2026-21852",
      "aliases": [
        "ti-006"
      ],
      "title": "CVE-2026-21852: Claude Code API Key Exfiltration via Malicious Repository Config",
      "summary": "Claude Code's project-load flow issued API requests, including auth headers, to ANTHROPIC_BASE_URL before showing a trust prompt, allowing a malicious repo's settings file to silently redirect all API calls to an attacker server and steal the developer's Anthropic API key. Discovered by Check Point Research; fixed in Claude Code v2.0.65 in January 2026.",
      "severity": "high",
      "cvss": {
        "score": null,
        "vector": null,
        "version": null
      },
      "cwe": [],
      "attackType": [
        "Credential theft",
        "Data exfiltration"
      ],
      "componentType": "agent",
      "component": {
        "name": "Claude Code",
        "vendor": null,
        "package": null,
        "ecosystem": null,
        "catalogSlug": null
      },
      "affected": [
        {
          "range": "Claude Code < 2.0.65",
          "fixed": "2.0.65"
        }
      ],
      "exploited": false,
      "exploitPublic": false,
      "publishedAt": "2026-02-25",
      "modifiedAt": "2026-02-25",
      "lastVerified": "2026-11-01",
      "references": [
        {
          "type": "article",
          "url": "https://thehackernews.com/2026/02/claude-code-flaws-allow-remote-code.html"
        },
        {
          "type": "cve",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-21852"
        }
      ],
      "mitigation": "Upgrade Claude Code to v2.0.65+. Rotate Anthropic API keys if Claude Code was used on untrusted repos prior to patch. Block ANTHROPIC_BASE_URL overrides in project-scoped settings.",
      "detectedByAnomity": true
    }
  }
}