# CVE-2026-54316: Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.34%, higher than 93% of CVEs (2026-12-01)
- Published: 2026-06-17T18:06:06.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-fg94-h982-f3mm
- Weaknesses: CWE-183, CWE-200, CWE-515
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anthropics claude-code: >= 0.2.54, < 2.1.163
- @anthropic-ai/claude-code (npm): from 0.2.54 before 2.1.163
- anthropic claude_code: from 0.2.54 before 2.1.163

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `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`
- GitHub: CVSS:3.1 9.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54316> (advisory)
- <https://github.com/anthropics/claude-code> (package)

## Sources

- CVE List: [CVE-2026-54316](https://www.cve.org/CVERecord?id=CVE-2026-54316), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-fg94-h982-f3mm](https://github.com/advisories/GHSA-fg94-h982-f3mm), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54316](https://nvd.nist.gov/vuln/detail/CVE-2026-54316), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54316 · Whole record: https://cve.day/CVE-2026-54316.json · Rebuilt by cve.day 2026-11-25T22:59:25.517Z
