Axisdream
Written and Published byAxisdream·

Claude Code Puts Your Email in Prompt and Header

Session identifier travelling from an authentication layer into outbound request headers

Key Takeaways

  • •A report filed on 5 November says Claude Code injects the signed-in account email into the system prompt, where it can reach third-party sites via User-Agent.
  • •Examines the argument is not about whether anthropic knows the email, analyzing the structural bottlenecks and trade-offs in real-world deployments.
  • •Provides engineering benchmarks and verification criteria for why the july report did not change it.

A GitHub issue opened on 5 November 2026 reports that Claude Code injects the signed-in account's email address into the model's system prompt on every session, and that the data ends up in the User-Agent header when the tool reaches websites. The submission reached 1,601 points and 532 comments on the same day.

An earlier issue from 25 July 2026 reported that version 2.1.220 placed the account email in a userEmail context block, so the behaviour predates the November report. What changed in November was attention.

The argument is not about whether Anthropic knows the email

It does, because it authenticated the session. The question the report raises is why an identifier that exists to authorise a session is placed into the model's context, where it becomes part of every request.

The failure is one of data minimisation, with a specific shape. Consent given to authenticate is not consent to embed, and an email in a User-Agent header travels to every third-party site the agent visits. An agent running on a corporate network becomes a mechanism for disclosing an employee identifier to every domain it touches.

The mechanism is mundane, which is why it travels. A header is not a payload field anyone reviews, and a system prompt is not a database column anyone audits. Both are places where data arrives by construction rather than by decision.

Why the July report did not change it

The behaviour was documented in July and reached the front page in November. Between those two points the mechanism appears to have persisted, which suggests the report did not surface a defect the maintainers treated as one.

The pattern is common with privacy findings. A data leak that requires an attacker is a vulnerability. A data flow that a developer finds uncomfortable is a design choice, and design choices get closed as intended behaviour unless the objection lands with enough weight to change the default.

The November coverage supplied that weight. Whether it changed the default is a separate question from whether it changed the discussion.

What the report does not establish

The report is a user-filed issue, not a vendor statement and not a CVE. Its claim that the email reaches third-party sites through the User-Agent header requires verification against network traces, which this research pass did not perform.

The July issue references a specific version. Whether the November report concerns the same code path or a different one was not confirmed.

It should not be described as a vulnerability without confirming exploitability. It is a privacy and data-minimisation concern, and the harm it describes is disclosure rather than compromise.

The issue thread and the Hacker News discussion are both public, and a reader can check their own configuration before deciding whether the question applies to their setup.

Related Dispatches