{
  "id": "CVE-2026-21852",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-21852",
  "published_at": "2026-01-21T20:42:06.812Z",
  "title": "Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation",
  "vendor": "anthropics",
  "product": "claude-code",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-02-27T01:13:21Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 36.2,
    "repo": "atiilla/CVE-2026-21852-PoC",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 2,
  "edge_device": null,
  "description": "Claude Code is an agentic coding tool. Prior to version 2.0.65, vulnerability in Claude Code's project-load flow allowed malicious repositories to exfiltrate data including Anthropic API keys before users confirmed trust. An attacker-controlled repository could include a settings file that sets ANTHROPIC_BASE_URL to an attacker-controlled endpoint and when the repository was opened, Claude Code would read the configuration and immediately issue API requests before showing the trust prompt, 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 version 2.0.65, which contains a patch, or to the latest version.",
  "cwe": "CWE-522",
  "cpes": [
    "cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.3,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "atiilla/CVE-2026-21852-PoC",
      "url": "https://github.com/atiilla/CVE-2026-21852-PoC",
      "created_at": "2026-02-27T01:13:21Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 24,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-11-28T19:22:00Z"
    },
    {
      "repo": "M0broot/CVE-Archive",
      "url": "https://github.com/M0broot/CVE-Archive",
      "created_at": "2026-02-27T19:18:11Z",
      "first_seen_at": "2026-11-15T01:46:12.516Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2023-01-01T06:36:25Z"
    },
    {
      "repo": "TreRB/ai-ide-config-guard",
      "url": "https://github.com/TreRB/ai-ide-config-guard",
      "created_at": "2026-04-20T06:41:02Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 100,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in README.md",
        "pipes a download into a shell / encoded PowerShell in scripts/demo-vuln-scan.mjs",
        "pipes a download into a shell / encoded PowerShell in src/checks/g7_shell_in_rules.js",
        "pipes a download into a shell / encoded PowerShell in test/g1_claude_hooks.test.js",
        "pipes a download into a shell / encoded PowerShell in test/g4_vscode_tasks.test.js",
        "pipes a download into a shell / encoded PowerShell in test/g7_shell_in_rules.test.js",
        "pipes a download into a shell / encoded PowerShell in test/integration.test.js"
      ],
      "status": "analyzed",
      "owner_created_at": "2024-02-26T01:06:00Z"
    },
    {
      "repo": "Perufitlife/dotclaude-security",
      "url": "https://github.com/Perufitlife/dotclaude-security",
      "created_at": "2026-06-21T11:50:53Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 100,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in scripts/audit.js",
        "pipes a download into a shell / encoded PowerShell in test/audit.test.js"
      ],
      "status": "analyzed",
      "owner_created_at": "2023-01-17T01:50:43Z"
    },
    {
      "repo": "abhishek2512mishra/claude-code-security-audit",
      "url": "https://github.com/abhishek2512mishra/claude-code-security-audit",
      "created_at": "2026-09-13T12:35:52Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2020-05-21T14:34:16Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "anthropics",
        "product": "claude-code",
        "ranges": [
          "\u003c 2.0.65"
        ],
        "fixed_in": [
          "2.0.65"
        ]
      }
    ],
    "upgrade": [
      "Upgrade claude-code to 2.0.65 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/anthropics/claude-code/security/advisories/GHSA-jh7p-qr78-84p7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
