PulseAugur
EN
LIVE 15:08:44

Claude Code vulnerability exposed API keys before trust prompt

A security vulnerability, tracked as CVE-2026-21852, has been identified in Claude Code versions prior to 2.0.65. The flaw allowed malicious repositories to exfiltrate API keys by setting a specific configuration value before the user was prompted to confirm trust in the repository. This means simply opening a compromised folder could lead to an API key being sent to an attacker-controlled server without any further user interaction. The issue has been fixed in version 2.0.65 and later. AI

IMPACT Exposes a critical security flaw in AI coding assistants, highlighting the need for robust trust mechanisms before executing user-provided code configurations.

RANK_REASON Disclosure of a security vulnerability and its fix in a specific software tool.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code vulnerability exposed API keys before trust prompt

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Ramdai Bista ·

    Claude Code Sent Your API Key to an Attacker's Server Before It Asked If You Trusted the Repo

    <p>Claude Code's workspace trust prompt exists to stop an untrusted repository's config from doing anything before you've confirmed you trust it. For versions below 2.0.65, one config value got processed before that prompt ever appeared — and it was the one that controls where yo…