Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2026-54316: Claude Code WebFetch Authorization Bypass and Covert Data Exfiltration

Published Jun 23, 2026 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS6.0Medium · v4
EPSS0.52%38th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Anthropic
IdentifiersCVE-2026-54316CWE-863

Claude Code versions 0.2.54 through 2.1.162 contain an authorization bypass in the WebFetch tool. Pre-approval of the bare Hugging Face hostname extends to all repository paths, including attacker-controlled resources, allowing requests without permission prompts or enforcement of --allowedTools restrictions. An attacker who injects untrusted instructions into the agent's context can induce requests that encode accessible sensitive information. Hugging Face's server-side download counters provide a covert out-of-band channel through which the attacker can reconstruct that information. Version 2.1.163 fixes the vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The vulnerability compromises confidentiality by allowing exfiltration of data accessible to Claude Code, including file contents, environment variables, command output, and API credentials. Demonstrated exploitation leaked an API key one character at a time through public download counters. Stolen credentials could enable further access according to their permissions; this vulnerability alone does not establish arbitrary code execution.

Mitigation

If you can’t patch tonight, do this now.

Until patched, prevent untrusted content from entering Claude Code context windows, particularly content supplied through public issues or pull requests. Review workflows that automatically process such inputs and minimize the permissions of credentials available to the agent. Do not rely on --allowedTools restrictions to block the affected WebFetch requests.

Remediation

Patch, then assume compromise.

Upgrade @anthropic-ai/claude-code to version 2.1.163 or later. Standard auto-update installations have received the fix; manually maintained installations require an explicit update.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
cve-2026-54316-labThis repository is a self-contained lab for reproducing CVE-2026-54316 / GHSA-fg94-h982-f3mm affecting @anthropic-ai/claude-code. It is not a traditional memory-corruption exploit; instead it demonstrates a web-based prompt-injection and policy-bypass chain. The core issue is that vulnerable Claude Code versions pre-approved the bare hostname `huggingface.co` for WebFetch, allowing any path on that multi-tenant domain to be fetched without a permission prompt. The repository shows how untrusted content can exploit that behavior to exfiltrate local data out-of-band. Repository structure is small and purpose-built: `Dockerfile` builds an isolated lab container with vulnerable Claude Code 2.1.162 installed globally, creates a non-root user, and places a dummy `.env` canary plus permissive Claude settings into `/home/researcher/lab`. `fixtures/canary.env` contains the benign CANARY value used as the stand-in secret. `payloads/untrusted-readme.md` is the actual exploit payload: a markdown prompt-injection sample instructing the agent to read `.env` and fetch one HuggingFace URL per character of the CANARY value. `scripts/make_hf_canary_files.sh` prepares an attacker-controlled HuggingFace repository layout by generating `char_*` files and a `config.json`, enabling reconstruction of the leaked value from HuggingFace download metrics. `README.md` documents both the prompt-bypass proof and the exfiltration workflow. Main exploit capability: induce a vulnerable Claude Code instance to perform unauthorized WebFetch requests to attacker-controlled HuggingFace paths without prompting the user, then use those requests as a covert exfiltration channel. The exploit targets local file contents rather than achieving code execution. It is operational because it includes a concrete payload and supporting infrastructure generation, but it is still a lab/PoC-style reproduction rather than a generalized framework module.InertFluid · Disclosed Jun 18, 2026 · dockerfile · markdown · web · fileOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AnthropicClaude Codeapplication
FAQ

Frequently asked questions

Is CVE-2026-54316 exploited in the wild?
As of Nov 2, 2026, Mallory has no reports of CVE-2026-54316 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-54316?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-54316, the earliest disclosed Jun 18, 2026.
Is there a patch for CVE-2026-54316?
Upgrade @anthropic-ai/claude-code to version 2.1.163 or later. Standard auto-update installations have received the fix; manually maintained installations require an explicit update.
What products are affected by CVE-2026-54316?
Anthropic Claude Code.
How severe is CVE-2026-54316?
CVE-2026-54316 has a CVSS v4 score of 6.0 (Medium) and an EPSS score of 0.52% (38th percentile) as of Nov 2, 2026.
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.