github.com via Hacker News

Claude Code fuitait l'email utilisateur dans son User-Agent

6 médias qui couvrent ce sujet

TL;DR

  • GIGAZINE's timeline shows the issue was first reported in July 2026, four months before Anthropic shipped the patch in version 2.1.317.
  • Leaked context was not limited to email: GIGAZINE documents that names, company affiliations, and GitHub repository details also reached external hosts.
  • Security engineer Chris Lakin documented Claude Code sharing his email with more than 10 external hosts including the SEC, per GIGAZINE.

"I receive dozens of scam emails per day because claude code divulged my email to arbitrary 3rd parties in the User-Agent request header while conducting web searches without my permission", écrit l'utilisateur taylor-edwards dans l'issue 107757 ouverte le 5 novembre sur le dépôt GitHub de Claude Code. Il tourne sur la version 2.1.318, plateforme darwin, terminal tmux. L'issue cumule 138 pouces levés et 19 yeux.

Dans un commentaire de suivi, le contributeur Anthropic poteat détaille le mécanisme: Wikipedia a pour politique que tous les clients scriptés s'identifient via un email de contact dans le User-Agent, l'utilisateur demande à Claude de rechercher sur Wikipedia, et "Claude sends the user's email to Wikipedia in its curl call". Son cadrage est explicite: "nobody implemented this 'share email addresses to websites' as a feature. Models can be highly unpredictable."

Le correctif est arrivé en version 2.1.317 sous la forme d'un mod intégré baptisé cc-plugin-privacy, "enabled by default" et désactivable via /plugins. Anthropic en a ensuite rendu la source disponible sous mods/privacy, pour que la communauté voie la vérification qui empêche ce comportement.

Deux objections surnagent dans le fil. AlexErrant renvoie à l'issue #81138 ouverte en juillet et conclut: "5-month turnaround for a heckin plugin". francescor, de son côté, rapporte tourner sur la 2.1.318 "as the reporter" et "cannot see any cc-plugin-privacy in /plugins". Le rapporteur initial dit migrer son entreprise "to Pi with OpenRouter". L'issue est étiquetée area:security, area:tools, bug.

La discussion s'ajoute à un flux dense de couverture Anthropic sur AI Weekly ces dernières semaines.

Ce qu'en disent les autres médias

Couverture consolidée 25h après publication

  1. GIGAZINE Lire →

    Provides the four-month suppression timeline, aggregates multiple corroborating reports, and documents that leaked context extended to names, company affiliations, and GitHub repo details.

    Claude Code includes email addresses in instructions given to the AI, and this information is sent to an external site.
  2. DEV Community Lire →

    Adds a five-month system-prompt companion bug, a runnable five-point verification checklist, and evidence that patched installs still leak, undermining Anthropic's default-on claim.

    Every website your agent fetched saw a verified, working email belonging to a developer who pays for AI tooling. That is not a tracking identifier; that is a pre-qualified lead.
  3. DEV Community Lire →

    Empirically runs the cc-plugin-privacy code 23 times and catalogs eight specific bypass vectors — double encoding, basic auth, runtime variables, web tools — that the hook never catches.

    The hook only fires when the literal address and a User-Agent word appear in the same call.
  4. PrivacySavvy Lire →

    Aggregates developer reactions and frames the systemic issue as an AI agent permission gap: accepting a task does not constitute consent to share PII during execution.

    Permission to finish a task should not automatically mean permission to share personal information along the way.
  5. Cryptika Lire →

    Notes the original reporter was already on version 2.1.318, the version meant to include the fix, exposing the gap between configured protections and actual security outcomes.

    A User-Agent header normally identifies the software making a web request. An email placed inside that header reaches the destination website.