Claude Code sent account emails to websites in User-Agent headers
Claude Code gave the model the signed-in account email, and the model sometimes wrote it into the User-Agent of its own curl calls and scripts. Anthropic says the email leaves the context in the next release. The stopgap check misses known cases.
One user found 53 calls carrying their email. Stable Claude Code, 2.1.311, ships without the guard.
On November 5, 2026, GitHub user taylor-edwards opened issue 107757 and reported that Claude Code had sent the account email to third-party sites in the User-Agent request header. On November 6, lydia_hallie, who writes "I work on Claude Code", replied on Hacker News that the next release will remove the email from the context the model gets.
As of November 7, the issue is open with 102 comments and 939 reactions. The Hacker News thread has 1,571 points.
The model wrote the header itself
According to lydia_hallie, Anthropic put the account email in the model's context for signed-in users because Claude invented names for things like @author tags. When Claude wrote its own command, such as a curl call, it sometimes added the email as a contact. The Wikimedia User-Agent policy says "Scripts should use an informative User-Agent string with contact information." The SEC asks EDGAR clients for a company name and an admin email.
Issue 81138, opened July 25, already showed the system prompt line, read from oauthAccount.emailAddress in ~/.claude.json. The changelog for 2.1.234, released August 17, says Claude is now told not to send the email to unrelated services unless asked.
The header can name the project too
GitHub user mkubenka scanned their own transcripts and found one curl call that sent a project name, the account email and an address query to a geocoding API. A second case was a Python script the model wrote with Edit, then ran. Another user, morsik, reports 53 such calls across 8 sessions from August 9 to November 1, mostly from subagents.
The stopgap covers one shape
The 2.1.317 changelog, for November 2, adds "a check that asks before a web or shell tool call sends your account email address to the network." GitHub user poteat said it is a built-in mod, cc-plugin-privacy, on by default. The published mod README describes something narrower: a Bash, PowerShell or Monitor call that holds the address and names a User-Agent is refused, with no prompt. WebFetch, WebSearch, MCP tools and scripts that hold the address pass.
Three users report that even the covered case runs. An echo of the address beside the word User-Agent was not refused on 2.1.317 and 2.1.318 on macOS, on 2.1.318 on Windows, and on 2.1.319 on macOS, per mkubenka. The npm stable tag is still 2.1.311, which predates the mod.
How to check your own transcripts
Commenters searched their local session logs. This uses the same paths:
claude --version
EMAIL=$(jq -r .oauthAccount.emailAddress ~/.claude.json)
# lines that hold your email and a User-Agent
grep -rhF "$EMAIL" ~/.claude/projects --include='*.jsonl' \
| grep -ciE 'user[-_]?agent|curl -A|wget -U'
# every User-Agent string the agent wrote, most common first
grep -rhoiE 'user[-_]?agent[^,]{0,100}' ~/.claude/projects \
--include='*.jsonl' | sort | uniq -c | sort -rn | head -20What is not confirmed
The reporter says the leak led to dozens of scam emails a day. Nobody in the thread shows that path. How many users and sites were affected is unknown.
The release that removes the email has not shipped. Version 2.1.319, out November 6, has no entry about it. No Anthropic reply in the issue explains the failed checks, or why the changelog says "asks" while the source refuses. poteat writes as "we" but is not a public member of the anthropics GitHub org.
Why a build studio cares
Our reading: we use Claude Code ourselves, and this leak needed no attacker. The model followed a site's published etiquette with data the tool handed it, then named the work it was doing. A filter for one header shape cannot keep up with a model that writes its own scripts, which is why Anthropic's fix removes the email from context. The session logs already record what each agent sent.
Next step: run the search above, update to 2.1.317 or later, and follow issue 107757 for the release that removes the email. For an outside check, see our software audits.