To address the privacy leak risk caused by Claude Code injecting account email addresses into the conversation context upon login, Anthropic has added a pre-send confirmation check mechanism in version 2.1.317.
Users recently discovered an account information leak risk in the AI coding tool Claude Code. When a user logs in, the tool injects their account email address into the conversation context, creating the potential for the email address to be leaked to third-party websites via external requests or Git commits, thereby exposing users to phishing and spam emails.
To address this issue, Anthropic has released a fix in Claude Code version 2.1.317, introducing a new pre-send confirmation check mechanism to reduce the risk of sensitive information leakage.