The address was in the context — Claude Code put signed-in users' email into User-Agent headers, and GDPR's by-default duty sits with whoever rolled the agent out

Claude Code placed the account email in the model's context, and the model sometimes wrote it into the User-Agent of its own curl calls when sites asked bots for a contact; reported in August against 2.1.212, an ask-before check arrived in 2.1.317 and, by the Claude Code team's account, misses agent-written scripts. GDPR Art. 25(2) puts data protection by default on the controller, which for a rolled-out agent is most likely the deploying company.

Post

Your coding agent writes a curl command. Your work email is in the User-Agent header. That is not a hypothetical. A Claude Code user reported it on 5 November.

  1. What happened. GitHub issue #107757, filed against Claude Code 2.1.318, says the account email went to third-party websites in the User-Agent header during web requests. The reporter links it to dozens of scam emails a day; that link is theirs and not established. The same behaviour reached Hacker News on 11 August, against 2.1.212.

  2. The mechanism, before you go looking for a telemetry flag. A Claude Code engineer explained on Hacker News that the account email was placed in the model's context for signed-in users. Some sites ask automated clients for a contact address. When Claude wrote its own curl call, it sometimes supplied the one it had.

  3. The fix, and its edge. 2.1.317 added a check that asks before a web or shell tool call sends the account email; it is in the CHANGELOG. By the same engineer's account, it "still doesn't prevent all cases, like when Claude writes a script and runs on its own." The real fix, removing the email from the model's context, is promised for the next release.

  4. What I'd do Monday. Check which channel your team is on: stable was still on 2.1.311, which predates the check. Flag email addresses in outbound headers at your egress proxy. And in your own agents, keep identity out of the prompt unless a tool needs it.

The EU angle. GDPR Article 25(2) requires that, by default, only personal data necessary for each specific purpose are processed. If your company rolled the agent out, the controller who answers for that default is most likely you. "The model was being polite to a site's bot policy" is not a technical measure.

The general lesson is older than this bug: anything in an agent's context is something it may send.

What is in your agent's context that it should never send?

#AgenticAI #GDPR #ClaudeCode #AIAgents #PrivacyByDesign

AI disclosure: the narration voice, the cover art and the brand ident animation in this video are AI-generated. The script, the claims and the source checks are mine.

First comment

Sources:

GitHub issue #107757, "Privacy violation in User-Agent header" (filed 5 Nov 2026 on 2.1.318; still open) https://github.com/anthropics/claude-code/issues/107757

Hacker News comment by a Claude Code engineer (6 Nov 2026 UTC: email was in the model's context, used as a "contact address"; 2.1.317 check; stable on 2.1.311; fix in next release) https://news.ycombinator.com/item?id=50388176

Claude Code CHANGELOG, 2.1.317: "Added a check that asks before a web or shell tool call sends your account email address to the network" https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

The August report: Hacker News, 11 Aug 2026, against 2.1.212 (GitHub issue #78431) https://news.ycombinator.com/item?id=49258881

Cyber Security News coverage (6 Nov 2026) https://cybersecuritynews.com/claude-code-leaks-user-email/

GDPR Article 25: data protection by design and by default https://gdpr-info.eu/art-25-gdpr/

Cut for length: in the GitHub thread, one user reports that the 2.1.317 check did not refuse a test command containing an account email on their machine. One unreproduced report, so it stayed out of the post, but it is the cheapest thing to test yourself before relying on the check.

AI disclosure: the narration voice, the cover art and the brand ident animation in this video are AI-generated. The script, the claims and the source checks are mine.

Claims

Sources

Corrections

None.

AI disclosure

The video for this edition contains AI-generated media: the narration is a synthetic voice, the cover art and any background imagery are generated, and the brand ident animation is generated. The script, the claims and the source verification are human-authored and human-checked. Assets carry IPTC DigitalSourceType and C2PA Content Credentials.