Claude Code was mailing your email address to every website it visited: the User-Agent leak, the 5-month system-prompt issue, and the 5-point check
Claude Code put your account email in the User-Agent header of its web requests, so every server log on the agent's path harvested a scam-ready lead, and the same email ships in the system prompt of every session, an issue open since July. Fixed by a built-in mod in 2.1.317 after the issue went viral. The mechanics, the timeline, and the runtime test for your install.
First seen by Oriel on .
AI summary
The post alleges Claude Code exposed account emails through web-request User-Agent headers and session system prompts, while offering five checks to verify whether cc-plugin-privacy blocks the behavior.
- The User-Agent allegedly sent a verified account email to websites and intermediaries, enabling identity linkage, targeting, rate-limiting, and spam.
- Issue #81138 shows v2.1.220 code reading oauthAccount.emailAddress from ~/.claude.json and adding it to every session as a #userEmail system-prompt block.
- Anthropic introduced the default-enabled cc-plugin-privacy mod in v2.1.317+, but a reporter using v2.1.318 still observed leakage.
- The recommended runtime test starts a local HTTP server, asks Claude Code to fetch it, and inspects the received User-Agent for an email address.
- Additional checks cover the installed version, plugin status, local email configuration, and whether a fresh session can state the user's email unprompted.
#claude code #privacy #user-agent #system prompts
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 17, latest observation ; +2 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 20, latest observation ; +10 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 4986995 | https://dev.to/slabb/claude-code-was-mailing-your-email-address-to-every-website-it-visited-the-user-agent-leak-the-12k6 Read discussion |