{"id":"CVE-2026-54316","published":"2026-06-23T17:06:16Z","modified":"2026-06-23T17:37:38Z","title":"Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0052,"percentile":0.37481,"provenance":"source"},"cwes":[{"id":"CWE-183","name":"Permissive List of Allowed Inputs"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-515","name":"Covert Storage Channel"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":7.5},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.2}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-18","earliestUrl":"https://github.com/InertFluid/cve-2026-54316-lab","repos":[{"name":"InertFluid/cve-2026-54316-lab","url":"https://github.com/InertFluid/cve-2026-54316-lab","stars":1,"created":"2026-06-18"}]},"first":{"date":"2026-06-18","source":"PoC-in-GitHub","url":"https://github.com/InertFluid/cve-2026-54316-lab"},"provenance":"source"},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":[">= 0.2.54, < 2.1.163"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T17:37:32.464559Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":[">=0.2.54, <2.1.163"],"patched":["2.1.163"],"from":["GHSA-fg94-h982-f3mm"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38538","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-35603","published":"2026-04-17","fixed":"2.1.75","kev":false},{"cve":"CVE-2026-40068","published":"2026-05-05","fixed":"2.1.84","kev":false},{"cve":"CVE-2026-46406","published":"2026-06-29","fixed":"2.1.128","kev":false,"link":{"from":"CVE-2026-46406","to":"CVE-2026-54316","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.1.128","toFixed":"2.1.163","daysApart":-6}]}},{"cve":"CVE-2026-54316","published":"2026-06-23","fixed":"2.1.163","kev":false},{"cve":"CVE-2026-55607","published":"2026-06-29","fixed":"2.1.163","kev":false},{"cve":"CVE-2026-86063","published":"2026-10-13","fixed":"2.1.179","kev":false},{"cve":"CVE-2026-88968","published":"2026-11-03","fixed":"2.1.251","kev":false}],"package":"npm:@anthropic-ai/claude-code"}}