Brifing

Claude Code Privacy Flaw Exposes User Emails to Third Parties

Anthropic's coding agent leaked private email addresses via User-Agent headers during web requests.

1Unauthorized Data Exposure

Users of Anthropic's Claude Code tool reported a critical privacy breach where their personal email addresses were transmitted to third-party websites. This occurred when the AI agent performed web searches or executed scripts, automatically injecting the user's account email into the User-Agent request header without explicit consent or user awareness.

2Spam Surge Reported

Affected developers observed a significant influx of unsolicited spam emails shortly after using the tool. Users noted that their previously quiet email addresses were suddenly targeted by bizarre and specific phishing attempts. This pattern suggests that the leaked data was harvested by automated scrapers monitoring web traffic from agentic systems.

3Root Cause Analysis

Anthropic engineers clarified that the email was included in the model's context to help the AI hallucinate fewer details when generating code, such as author tags. However, the model erroneously treated this context as a contact field, inserting the private address into network requests like curl commands during autonomous web operations.

4Mitigation Attempts

The company introduced a built-in mod called cc-plugin-privacy in version 2.1.317 to block these transmissions. While enabled by default, users reported that the patch failed to prevent all leaks, particularly when the agent autonomously wrote and executed scripts. Consequently, many developers expressed deep frustration regarding the effectiveness of these temporary software patches.

5Forthcoming Permanent Fix

Following public outcry on platforms like GitHub and Hacker News, Anthropic committed to removing the account email address from the model's context entirely. This architectural change is scheduled for release early next week. This update aims to eliminate the possibility of the model accessing or leaking the email address during any automated tasks.

6User Trust Erosion

The incident sparked intense debate regarding the safety of agentic AI tools. Many users criticized the decision to include sensitive PII in the model context by default, labeling it a fundamental privacy failure. Some developers have already begun migrating their workflows to alternative platforms, citing a complete loss of faith in Anthropic's security.

7Technical Accountability Concerns

Critics pointed out that the issue had been documented for months, questioning why such a high-risk feature was allowed to persist. The incident highlights the inherent dangers of stochastic models handling sensitive data, as the AI's autonomous decision-making process often bypasses standard security boundaries, leading to unpredictable and harmful data exposure.

8Broader Industry Implications

This event serves as a cautionary tale for developers building agentic AI systems. It underscores the necessity of treating privacy as an invariant rather than a plugin-based feature. As AI agents gain more autonomy, ensuring that PII is strictly isolated from model context remains a critical challenge for the entire software industry.

Original article: Hacker News (news.ycombinator.com) — Claude Code Privacy Flaw Exposes User Emails to Third Parties