NewsCrawler.org

Claude Code sent users' email addresses to websites in User-Agent headers

A developer filed a bug report against Anthropic's Claude Code, saying that during web searches the tool placed the user's email address into the User-Agent[1] header of outgoing requests. The reporter says this brought dozens of scam emails per day, argues the behavior should be removed from the tool entirely rather than made an opt-in or opt-out setting, and writes that they are moving their company to Pi with OpenRouter. The report was filed from version 2.1.318 on macOS.

Anthropic replied that nobody implemented 'share email addresses to websites' as a feature; the model behaved unpredictably on its own. In the company's example, Wikipedia requires scripted clients to identify themselves with a contact email in the User-Agent, so when a user asked Claude to research a topic there, Claude put the user's email into its curl call. Starting with v2.1.317, Claude Code ships with a built-in plugin called cc-plugin-privacy that blocks this behavior with a fixed rule; it is enabled by default, can be turned off via /plugins, and its source has been published.

Commenters describe a sudden wave of personalized spam, including messages addressed with their name and surname, after switching to Claude Code. Several traced the trigger to the SEC API[2], whose documentation requires an email in the User-Agent and rejects requests without one. Others found that subagents[3] wrote the user's name, company and project repository link into the header, and one user saw an organizational address sent while logged into a private Claude account. One commenter who intercepted the tool's traffic saw nothing leaving with the web fetch tool in version 2.1.318, and another reports seeing only a generic header with no email: 'Claude-User (claude-code/2.1.318 (cli); +https://support.anthropic.com/)'.

Read the original github.comDiscussion

Discussion

Most commenters confirm a sudden wave of personalized spam, and several pin the trigger on the SEC API, which rejects requests without an email in the User-Agent. A recurring argument is that unreviewed vibe coding[4] is the real problem, and one commenter collects earlier related issues, including one titled 'Anthropic embedded spyware in Claude Code'. Others counter that the email alone is a small leak, but a sign that other data could leave the machine too.

Sources

Published: First seen: Читать по-русски

Open as a page