Warning: Claude Code has been sending some users’ email addresses to outside websites
The AI tool tucked account emails into web requests it wrote. Anthropic says it will remove the email from what the AI sees, and urges users to update now.
Claude Code, an AI coding tool made by San Francisco-based Anthropic, has at times sent its users' email addresses to outside websites without asking, according to user reports on GitHub and a response from a member of Anthropic's Claude Code team. Anthropic says a fix that removes the email from what the AI can see is due early next week.
What Claude Code is
Claude Code is an AI agent for programmers. An agent is an AI that does multistep jobs on its own, not just answers questions. People run Claude Code on their computers, and it can read files, write code and run commands, including commands that fetch web pages.
What went wrong
Every time a program asks a website for a page, it sends a short label called a User-Agent. It tells the site what kind of program is asking, the way a web browser says it is Chrome or Safari. Some sites, including the federal Securities and Exchange Commission's EDGAR filings database, ask automated tools to put contact details in that label.
Anthropic had given Claude the signed-in user's account email, according to Lydia Hallie, who wrote on the tech forum Hacker News that she works on Claude Code. It was meant to stop the AI from making up names when it labels who wrote a piece of code, she said. But when Claude wrote its own web commands, "it sometimes put your email address in the User-Agent as a contact address," she wrote. That means the site owner could see and log it.
The problem drew wide attention after a user opened a GitHub bug report Nov. 5 titled "Privacy violation in User-Agent header." By Saturday it had 972 reactions and 104 comments. The user wrote that the address was now getting dozens of scam emails a day; that link has not been proven. A separate report about the email being placed in the AI's instructions without consent has been open since July.
What Anthropic says it is doing
Hallie wrote that Anthropic is removing the account email from the information Claude Code gives the AI, in a release expected early next week. "This should not have happened," she wrote.
Until then, she said, versions 2.1.317 and later include a safeguard, on by default, that asks before Claude runs a web request containing the user's email. She said it does not catch every case, such as a script Claude writes and runs itself, and some users on GitHub said it missed their tests. Claude Code's "stable" download channel is still on version 2.1.311, so she advised users to update to 2.1.317 or later.
Source: GitHub bug report; Hacker News comment from the Claude Code team; Claude Code changelog; npm version history; SEC guidance on automated access
- GitHub issue #107757, anthropics/claude-code: Bug Report: Privacy violation in User-Agent header (opened Nov. 5, 2026)
- GitHub issue #81138, anthropics/claude-code: Account email (PII) is injected into the model's system prompt (opened July 25, 2026)
- Hacker News comment by Lydia Hallie of the Claude Code team (Nov. 5, 2026, 8:24 PM PT)
- Claude Code changelog (Anthropic, GitHub)
- npm registry: @anthropic-ai/claude-code versions
- SEC: Accessing EDGAR data (asks automated tools to declare contact info in the User-Agent)