Claude Code was putting your email in every User-Agent. Update to 2.1.317+ today
Claude Code sometimes put the signed-in account email into HTTP User-Agent headers when it ran web searches or curl-style tool calls, so third-party sites could see your address without you approving it. Users reported spikes of scam and scam mail after the leak. Anthropic acknowledged the bug on the public GitHub issue: a built-in privacy mod (cc-plugin-privacy) ships on by default in Claude Code 2.1.317 and later, and the team said an upcoming release will stop putting the account email into the model's context at all. The stable channel was still on 2.1.311 when the issue blew up, so many people still need to update by hand.
Why it matters
If Claude Code browses for you, sites you never meant to share an email with may already have it. Updating today cuts off the leak before the next research session.
Who it's for
Anyone running Claude Code on Pro, Max, Team or Enterprise, especially people who let it fetch pages or call APIs.
What it means for you
- Update Claude Code now: npm install -g @anthropic-ai/claude-code@latest (or your usual install path) and confirm the version is 2.1.317 or later.
- Open Claude Code, run /plugins, and make sure the built-in privacy mod is enabled (on by default in 2.1.317+).
- If you saw a sudden spike of scam mail, treat that address as exposed: tighten filters, rotate any secrets that sat in the same inbox, and prefer a throwaway for agent accounts going forward.
- Until the next release that removes email from context, watch tool calls that build curl or User-Agent strings and deny ones that include your address.
Applies to: Applies to Claude Code users. Mitigation: update to 2.1.317 or later (releases include 2.1.317 and 2.1.318) and confirm the built-in privacy mod is enabled under /plugins. Anthropic said a fuller fix that removes the account email from model context should arrive early the following week. Checked on GitHub issue #107757 and Anthropic engineer comments on November 6, 2026.
Source: Anthropic / Claude Code on github.com
Written by Emily Carter from the original post. Checked Nov 6, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codeprivacysecurityuser-agentupdate
More Claude tricks
- One URL and one key for all your MCP servers: ngrok's MCP Gateway is live · Dec 2
- OpenCode 2.4.2 cuts about 700 tokens per request and tunes GPT-6.2 · Nov 26
- OpenCode 2.4 gives your coding agent a browser, automations, and video generation · Nov 24
- Claude Code 2.1.330 draws your charts with easel and lets scheduled tasks run 30 days · Nov 21