Building a SaaS tool or MCP server? Get listed or sponsor AgentStackList →
Claude Industry News By Emily Carter

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

  1. 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.
  2. Open Claude Code, run /plugins, and make sure the built-in privacy mod is enabled (on by default in 2.1.317+).
  3. 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.
  4. 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.

Share on X

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

All Claude tricks →