Skip to main content
Public proof of conceptFix available

CVE-2026-54316

A public proof of concept exists; no exploitation attested.

  • Published2026-06-23
  • Fixed in2.1.163
  • WeaknessCWE-183 · CWE-200 · CWE-515

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-06-2318:18CVE publishedNVD

Versions per branch

NVD · OSV
Anthropic claude code
BranchAffectedFixed in
2.1≥ 0.2.54, < 2.1.1632.1.163

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • anthropics claude-code
    Affected
    • = >= 0.2.54, < 2.1.163no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-06-23

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • claude-cliMinimOSall versions · fixed in 2.1.206-r0
  • plural-agent-harness-claudeMinimOSall versions · no fixed version listed

Vendor advisories

  • CVE-2026-54316 Red Hat Product Security1 known affected

    claude-code: Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch

    devspaces/pluginregistry-rhel9 as a component of Red Hat OpenShift Dev Spaces

Full record on NVD

Fix

  1. Update Anthropic claude code to 2.1.163
  2. Workaround from the vendor Red Hat Product Security CVE-2026-54316 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  3. No fix available, says the vendor Red Hat Product Security CVE-2026-54316 · 1 productFix deferred

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2026-06-23
  • CNACVSS 4.06known since 2026-10-26
  • NVDCVSS 3.19.1read 2026-10-26
  • NVDweakness (CWE)CWE-183, CWE-200, CWE-515read 2026-10-26
  • FIRST EPSSEPSS score6.3 %2026-12-01
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2026-06-17

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 4.0 vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2026-06-23
Last modified
2026-10-25
NVD status
Analyzed
GitHub advisory
GHSA-fg94-h982-f3mm

Frequently asked questions

What is CVE-2026-54316?

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.

Is CVE-2026-54316 actively exploited?

Active exploitation of CVE-2026-54316 has not been confirmed. Its EPSS score was 6.3% on 2026-12-01, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-54316?

CVE-2026-54316 has a CVSS v3 base score of 9.1 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running claude-code? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record