{"id":"CVE-2026-54316","aliases":["GHSA-fg94-h982-f3mm"],"summary":"Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch","published_at":"2026-06-17T18:06:06Z","modified_at":"2026-07-20T21:15:27.462388Z","products":[],"rating":{"severity":"critical","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005200000014156103,"percentile":0.44960999488830566,"date":"2026-11-19T00:00:00Z"},"priority":11.1,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"anthropics/claude-code","versions":[">= 0.2.54, < 2.1.163"],"provider":"cvelistv5","source":"CVE-2026-54316","relation":"self"},{"ecosystem":"NVD","package":"anthropic:claude_code","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.54"},{"fixed":"2.1.163"}]}],"fixed":["2.1.163"],"provider":"nvd","source":"CVE-2026-54316","relation":"self"},{"ecosystem":"npm","package":"@anthropic-ai/claude-code","purl":"pkg:npm/%40anthropic-ai/claude-code","ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.54"},{"fixed":"2.1.163"}]}],"fixed":["2.1.163"],"provider":"osv","source":"GHSA-fg94-h982-f3mm","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-54316"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-54316","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-54316","license":"CC-BY-4.0","published_at":"2026-06-23T17:06:16.184Z","modified_at":"2026-06-23T17:37:38.468Z","summary":"Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-54316"}],"affected":[{"ecosystem":"CVE","package":"anthropics/claude-code","versions":[">= 0.2.54, < 2.1.163"],"provider":"cvelistv5","source":"CVE-2026-54316","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm"}]},{"provider":"nvd","source_id":"CVE-2026-54316","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54316","severity":[],"affected":[{"ecosystem":"NVD","package":"anthropic:claude_code","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.54"},{"fixed":"2.1.163"}]}],"fixed":["2.1.163"],"provider":"nvd","source":"CVE-2026-54316","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-fg94-h982-f3mm","relation":"self","url":"https://osv.dev/vulnerability/GHSA-fg94-h982-f3mm","license":"CC-BY-4.0","published_at":"2026-06-17T18:06:06Z","modified_at":"2026-07-20T21:15:27.462388Z","summary":"Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch","details":"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. Users on standard Claude Code auto-update have received this fix already; users performing manual updates are advised to update to the latest version.\n\nThank you to hackerone.com/novee for reporting this issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"GHSA-fg94-h982-f3mm"},{"type":"CVSS_V4","score":"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","source":"GHSA-fg94-h982-f3mm"}],"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","purl":"pkg:npm/%40anthropic-ai/claude-code","ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.54"},{"fixed":"2.1.163"}]}],"fixed":["2.1.163"],"provider":"osv","source":"GHSA-fg94-h982-f3mm","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54316"},{"type":"PACKAGE","url":"https://github.com/anthropics/claude-code"}]},{"provider":"redhat-vex","source_id":"CVE-2026-54316","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-54316","license":"CC-BY-4.0","published_at":"2026-06-23T17:06:16.184Z","modified_at":"2026-07-07T15:31:45Z","summary":"claude-code: Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch","details":"A flaw was found in Claude Code, an agentic coding tool. An attacker could exploit a misconfiguration in the tool's web request functionality, known as WebFetch, where the `huggingface.co` domain was pre-approved without proper path restrictions. By injecting untrusted content into a Claude Code session, an attacker could direct the tool to make requests to their controlled files on HuggingFace. This creates a hidden channel to steal sensitive data, such as files or environment variables, that Claude Code can access. The primary impact of this vulnerability is the unauthorized disclosure of information.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"CVE-2026-54316"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-54316"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-54316"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54316.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-54316"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491853"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-54316"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54316"},{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm"}]}],"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-fg94-h982-f3mm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54316"},{"type":"PACKAGE","url":"https://github.com/anthropics/claude-code"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54316.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-54316"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491853"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-54316"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-54316","url":"https://www.cve.org/CVERecord?id=CVE-2026-54316","license":"CC-BY-4.0","modified_at":"2026-06-23T17:37:38.468Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-54316","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54316","relation":"self"},{"provider":"osv","source_id":"GHSA-fg94-h982-f3mm","url":"https://osv.dev/vulnerability/GHSA-fg94-h982-f3mm","license":"CC-BY-4.0","modified_at":"2026-07-20T21:15:27.462388Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-54316","url":"https://access.redhat.com/security/cve/CVE-2026-54316","license":"CC-BY-4.0","modified_at":"2026-07-07T15:31:45Z","relation":"self"}]}
