Skip to content
MediumVulnerabilityLLM-specific

GHSA-fg94-h982-f3mm: Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch

Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code >= 0.2.54, < 2.1.163
Fixed in
2.1.163
  • released June 4, 2026, 13 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Claude Code auto-approved any path on the huggingface.co domain for the WebFetch tool because the bare hostname was pre-approved, bypassing the permission prompt and --allowedTools restrictions. An attacker who can inject untrusted content into a Claude Code context can direct WebFetch requests to attacker-controlled repository files, which HuggingFace counts as downloads server-side, creating an out-of-band channel to exfiltrate data Claude can access, such as files, environment variables, or command output. Exploitation requires the ability to add untrusted content into the context window.

Mitigation

Users on standard Claude Code auto-update have already received the fix; users performing manual updates are advised to update to the latest version.