[BUG] you stupid agent used my real email as user agent string without asking anything
Status Open
Maintainer reply None cached
Activity 6 comments · opened Jul 17, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
you stupid agent used my real email as user agent string without asking anything
What Should Happen?
asked for a tool for analyze used email as part of UA without asking
Error Messages/Logs
Steps to Reproduce
email address sent in header User-Agent without explicit confirmation
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.212
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
using sonnet 5.0
Showing cached comments. Read the full discussion on GitHub ↗
4 Comments
yes same here,
curlcommands are passing my email address, who thought this was a good idea!edit: here is the tool call from the session logs
I have masked my email, 5 occurances in a 1 hour session.
What does the generated user agent string look like?
@lgualtieri75 can you provide more context re when this happened?
<img width="482" height="448" alt="Image" src="https://github.com/user-attachments/assets/b542dc9b-9b7c-4b14-a472-d2342007f901" />
cant reproduce on claude 2.1.212, macos, sonnet5, so likely not a harness issue
what claude code does however is injecting the
userEmailinto system context/reminders:<img width="698" height="329" alt="Image" src="https://github.com/user-attachments/assets/6f28143a-23f1-4636-a1a4-1a278c6187ad" />
so the most likely explanation is that claude (the model) decided it should add it as a header for whatever reason