Claude Code 在 curl 命令中将真实邮箱地址泄露为 User-Agent 字符串
英文标题:🔶 Claude Code is leaking real email address as a User-Agent string in curl command
一名用户报告称,Claude Code 在执行 curl 命令时,未经明确确认便将其真实电子邮件地址写入 HTTP 请求的 User-Agent 请求头。该问题被标记为回归:用户表示此前版本不存在这一行为,报告版本为 Claude Code v2.1.212。该案例提示开发者和 AI Agent 产品需要谨慎处理身份信息,并在将用户邮箱等敏感数据用于网络请求标识前取得明确授权。
打开原文相关 6 · 机会 1
7.3 KB
2.5 KB
2.7 KB
75.0 KB
中文
预检清单
问题是什么?
这个愚蠢的 Agent 在完全没有征询任何意见的情况下,将我的真实电子邮件地址用作 User-Agent 字符串。
应该如何处理?
在某个用于分析的工具将电子邮件作为 UA 的一部分使用前,应先征得同意。
错误消息/日志
复现步骤
电子邮件地址在未获得明确确认的情况下,被作为 User-Agent 请求头发送。
Claude 模型
无
这是回归问题吗?
是,此前版本中该功能可以正常工作。
最后一个正常工作的版本
未回应
Claude Code 版本
v2.1.212
平台
Anthropic API
操作系统
macOS
终端/Shell
IntelliJ IDEA 终端
补充信息
使用 sonnet 5.0
English / 原文
Preflight Checklist
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