Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54316: CWE-183: Permissive List of Allowed Inputs in anthropics claude-code

0
Medium
VulnerabilityCVE-2026-54316cvecve-2026-54316cwe-183cwe-200cwe-515
Published: 06/23/2026 (06/23/2026, 17:06:16 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: claude-code

Description

Claude Code is an agentic coding tool. From 0.2.54 until 2.1.163, because the hostname huggingface.co was pre-approved as a bare hostname for the WebFetch tool, any path on that domain—including attacker-controlled model repositories—was auto-approved without a permission prompt or being subject to --allowedTools restrictions. An attacker able to inject untrusted content into a Claude Code context could direct it to issue WebFetch requests against attacker-controlled repository files (e.g. /resolve/main/config.json), which HuggingFace counts as downloads server-side, creating a covert out-of-band channel for encoding and exfiltrating data Claude can access such as files, environment variables, or command output. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This vulnerability is fixed in 2.1.163.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
anthropics/claude-code
pkg:github/anthropics/claude-code
Affected versions
<2.1.163 >=0.2.54

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/23/2026, 17:54:53 UTC

Technical Analysis

In anthropics claude-code versions >=0.2.54 and <2.1.163, the WebFetch tool pre-approves the hostname huggingface.co as a bare hostname, allowing any path on that domain to be accessed without permission prompts or --allowedTools restrictions. An attacker able to inject untrusted content into a Claude Code context can exploit this to direct WebFetch requests to attacker-controlled model repository files on huggingface.co, which are counted as downloads server-side. This behavior creates a covert out-of-band channel for exfiltrating data accessible to Claude Code, such as files, environment variables, or command output. Exploitation requires the ability to add untrusted content into the Claude Code context. The vulnerability is addressed in version 2.1.163.

Potential Impact

An attacker with the capability to inject untrusted content into a Claude Code context can exploit this vulnerability to exfiltrate sensitive data via a covert channel using WebFetch requests to attacker-controlled paths on huggingface.co. This can lead to unauthorized disclosure of files, environment variables, or command output accessible to Claude Code. The vulnerability does not require privileges or user interaction beyond injecting untrusted content and has a medium severity score (CVSS 6.0).

Mitigation Recommendations

This vulnerability is fixed in anthropics claude-code version 2.1.163. Users should upgrade to version 2.1.163 or later to remediate this issue. Patch status is confirmed by the vendor advisory stating the fix is included in 2.1.163. Until upgrading, restrict the ability to inject untrusted content into Claude Code contexts to prevent exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-12T18:42:02.223Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3ac4f0eed863c81e618256

Added to database: 06/23/2026, 17:40:00 UTC

Last enriched: 06/23/2026, 17:54:53 UTC

Last updated: 06/23/2026, 18:36:18 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses