PatchSiren cyber security CVE debrief
CVE-2026-54316 anthropics CVE debrief
CVE-2026-54316 is a medium-severity vulnerability in Claude Code, an agentic coding tool, affecting versions from 0.2.54 to 2.1.163. The issue arises from the pre-approval of the hostname 'huggingface.co' for the WebFetch tool, enabling an attacker to inject untrusted content and direct the tool to issue requests against attacker-controlled repository files. This could create a covert out-of-band channel for exfiltrating sensitive data accessible to Claude, such as files, environment variables, or command output. Exploitation required adding untrusted content to a Claude Code context window. The vulnerability is fixed in version 2.1.163.
- Vendor
- anthropics
- Product
- claude-code
- CVSS
- MEDIUM 6
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-23
- Original CVE updated
- 2026-06-23
- Advisory published
- 2026-06-23
- Advisory updated
- 2026-06-23
Who should care
Organizations using Claude Code versions between 0.2.54 and 2.1.163 should prioritize patching to prevent potential data exfiltration. Security teams should review their inventory of Claude Code instances and ensure they are updated to version 2.1.163 or later. Additionally, monitoring for suspicious WebFetch requests and implementing compensating controls, such as restricting access to sensitive repositories, may be necessary.
Technical summary
The vulnerability in Claude Code's WebFetch tool stems from the auto-approval of paths on the 'huggingface.co' domain without proper permission prompts or restrictions. An attacker could inject malicious content into a Claude Code context, directing it to fetch files from attacker-controlled repositories. This could lead to the exfiltration of sensitive information, including files, environment variables, and command output. The issue is exacerbated by the fact that HuggingFace counts these requests as downloads server-side, potentially masking malicious activity.
Defensive priority
Patching Claude Code to version 2.1.163 or later is the primary mitigation. In the interim, restricting WebFetch requests to only necessary repositories and closely monitoring request patterns can help reduce risk.
Recommended defensive actions
- Patch Claude Code to version 2.1.163 or later
- Review and restrict WebFetch tool configurations
- Monitor for suspicious WebFetch requests
- Implement compensating controls for sensitive repository access
- Conduct thorough inventory checks for affected versions
Evidence notes
The CVE record and NVD detail provide official information on the vulnerability. The GitHub security advisory offers additional context on the fix in version 2.1.163. However, details on the exact scope of affected systems and potential exploitation attempts remain limited.
Official resources
-
CVE-2026-54316 CVE record
CVE.org
-
CVE-2026-54316 NVD detail
NVD
-
Source item URL
nvd_modified
- Source reference
This article is AI-assisted and based on the supplied source corpus.