> ## Content Index
> Fetch the complete content index at: https://orbiorbi.com/news/llms.txt
> Use this file to discover other available public pages before exploring further.

# Claude Code email leak: How sign-in addresses ended up in request headers
- URL: https://orbiorbi.com/news/en/claude-code-email-leak/
- Published: 2026-11-06T11:30:38.000Z
- Updated: 2026-11-06T11:35:03.000Z
- Description: Claude Code sometimes puts your sign-in email address in a web request it generates. A financial report request shows where the address came from, what 2.1.317 can catch, and how to restrict outbound connections from scripts.
- Author: Orbis News
- Tags: Guides, #en, #orbis-auto, #mt-review

## How Claude Code exposed sign-in email addresses

Say you ask Claude Code to download a public financial report. It writes a curl command and gets the file, but one of the request headers contains something you never entered: your sign-in email address. A [Reddit user](https://www.reddit.com/r/ClaudeCode/comments/1xjbxhf/claude%5Fcode%5Fsent%5Fmy%5Fpersonal%5Femail%5Fto%5Fsecgov/?ref=orbiorbi.com) had previously reported a similar case. On November 5, another user reported the same type of issue in 2.1.318 in the [Claude Code GitHub repository](https://github.com/anthropics/claude-code/issues/107757?ref=orbiorbi.com). The discussion soon reached Hacker News.

Claude Code team member Lydia Hallie explained on [Hacker News](https://news.ycombinator.com/item?id=50388176&ref=orbiorbi.com) that the sign-in email address was included in the model context and that the model sometimes inserted it into curl requests it wrote. Account information intended for code attribution ended up as contact information sent to websites. As of November 6, 2026, the default check had been in place since 2.1.317, and the team said the next release would remove the account email address from the model context. That removal had yet to ship.

The GitHub reporter also linked an increase in spam to the incident. The public reports explain how an address could reach a website, but they do not establish where the spam came from.

## Why a financial report request can expose a sign-in email

User-Agent is an HTTP request header. Browsers typically use it to identify what kind of client they are, while some sites ask automated scripts to provide more useful identifying information. The U.S. Securities and Exchange Commission's [EDGAR access guidelines](https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data?ref=orbiorbi.com) require clients to declare a User-Agent and give a company name and an administrative contact address as an example. A script can use a contact the operator selects and is authorized to share publicly. The SEC's example does not specify the Claude sign-in email address.

When a site asks for contact information, the model already has an email address on hand. Hallie said the team originally supplied the address because, without account information, the model would make up author names in code. Code attribution and website contact information serve different purposes. When the model writes its own curl command, it sometimes uses the address for the latter. If the address makes it into an outbound request, the receiving site can read it and may keep it in its access logs.

[Another issue report, dated October 1](https://github.com/anthropics/claude-code/issues/98584?ref=orbiorbi.com), described what happened beforehand. The reporter said a site responded by asking for a contact in the User-Agent header, and the curl request the model then generated included the account email address. In a request log, the field might look like `User-Agent: ResearchBot contact@example.invalid`, with a placeholder address here.

## Which calls the 2.1.317 email check covers

The [2.1.317 release notes](https://github.com/anthropics/claude-code/releases/tag/v2.1.317?ref=orbiorbi.com) list a check for outbound email disclosure. A project contributor said on GitHub that the built-in `cc-plugin-privacy` is enabled by default and can be managed through `/plugins`. The team described it publicly as a check before sending. The [published module documentation](https://raw.githubusercontent.com/anthropics/claude-code/main/mods/privacy/README.md?ref=orbiorbi.com) specifies a narrower match. The table describes documented behavior when the check is working in your installation.

| Request path                           | What the module documents                                                                                                         |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| A direct curl -A call with the address | The module rejects Bash, PowerShell or Monitor calls whose input contains both the account email address and a User-Agent marker. |
| Running a separate script              | The module cannot see the address when it appears only inside the script file.                                                    |
| WebFetch, WebSearch or MCP             | The module documentation lists these tools outside the scope of the check.                                                        |

Users have reported both false blocks and missed calls. In [#107144](https://github.com/anthropics/claude-code/issues/107144?ref=orbiorbi.com), a user reported that Bash commands that wrote to a file or sent a request to a local address were also blocked during an unattended run. Another user in #107757 said the built-in plugin was loaded on Windows in 2.1.318, yet a test command containing an email address did not trigger a prompt. The test used an invalid domain and recorded whether the check triggered. When investigating a specific incident, check the run mode and how the tool or command was invoked as well as the version.

To check your setup, run `claude --version` to see which version is actually running and look for the privacy plugin in `/plugins`. If you already suspect a request, start with the command history and any proxy logs you control. Check the destination domain, request method, and whether the email address was actually sent. Treat the model's account of what it did as a lead for your investigation.

## Route requests that need a contact through a dedicated script

Removing the account email address from the context, as the team plans to do, would cut off the default source discussed here. Your workspace may still hold contact information you added yourself, such as a maintainer's email address in project documentation. If your team needs an agent to fetch public data from EDGAR or a similar service regularly, a dedicated script can use a fixed service contact approved for public disclosure. The agent can supply the ticker symbol or file URL. The caller no longer has to choose an identity on the fly for each request.

For direct tool calls, the Claude Code [hooks documentation](https://code.claude.com/docs/en/hooks?ref=orbiorbi.com) says `PreToolUse` can run before a matching tool call and that exit code 2 from a command hook blocks the call. This works for checking arguments the hook can see directly. If the agent can also run Python or other scripts, a rule that scans only Bash command text may see just the script filename. To control where scripts actually connect, enforce an egress policy in the execution environment or at a shared proxy. The network rules still apply if the application misses a command.

The next time the script downloads a financial report, have it use the contact address configured for the data task so the site receives the identity you chose.

## Further reading

- [Getting started with Claude Code](https://orbiorbi.com/news/en/claude-code-beginner-web-page-guide/)
- [How to check which plugins Postman installs automatically](https://orbiorbi.com/news/en/postman-auto-installed-agent-plugins/)

## Sources

This article draws on public reports and product documentation. Orbis did not reproduce the transmission with a real account.

- [GitHub: November 5 user report and project responses](https://github.com/anthropics/claude-code/issues/107757?ref=orbiorbi.com)
- [Hacker News: Claude Code team explains its next steps](https://news.ycombinator.com/item?id=50388176&ref=orbiorbi.com)
- [The Injection: The incident and which calls the check covers](https://theinjection.dev/items/claude-code-user-agent-email-leak/?ref=orbiorbi.com)
- [SEC: Public guidelines for accessing EDGAR](https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data?ref=orbiorbi.com)