TL;DR — A gateway that fronts your models and secrets can be opened with a one-character password. CVE-2026-59822 (CVSS 4.0 8.8 / CVSS 3.1 8.2, both High; CWE-287) is an unauthenticated authentication bypass in LiteLLM — the widely deployed open-source LLM gateway from BerriAI — on its MCP Streamable HTTP endpoint. When key validation fails, a broken OAuth2 passthrough fallback hands the request an empty auth object instead of rejecting it, so any fabricated Authorization header reaches the MCP tooling. No valid key, no user interaction. Wiz recorded sustained attacks against exposed instances — recon with tokens as trivial as Bearer x, master-key and provider-key theft, and cryptominer deployment chained through a companion flaw — and CISA added it to the Known Exploited Vulnerabilities catalog on 2 September 2026 with a 16 September federal deadline. If you run LiteLLM, upgrade to 1.84.0 now and hunt for compromise.

HIGHCVE-2026-59822LiteLLM MCP OAuth2 fallback → unauthenticated tool accessCVSS8.8 High (v4.0) · 8.2 High (v3.1)VECTORCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NWEAKNESSCWE-287 Improper Authentication (also CWE-306 Missing Auth)AFFECTEDLiteLLM (BerriAI) — all versions < 1.84.0 with MCP enabledATTACK VECTORNetwork — unauthenticated request to the MCP Streamable HTTP endpointFIXED INLiteLLM 1.84.0 (pip install litellm==1.84.0 or later)EXPLOITEDYes — sustained attacks in Wiz honeypots (trivial bearer tokens)CISA KEVAdded 2 Sep 2026 — federal remediation deadline 16 Sep 2026
At-a-glance threat summary for the LiteLLM MCP authentication bypass (CVE-2026-59822).

What Is the LiteLLM MCP Authentication Bypass (CVE-2026-59822)?

LiteLLM, maintained by BerriAI, is one of the most widely deployed open-source LLM gateways: a proxy that gives teams a single OpenAI-compatible API in front of a hundred-plus model providers, with key management, spend tracking and routing baked in. Increasingly it also speaks MCP (Model Context Protocol) — the emerging standard that lets AI assistants call external “tools” — brokering access to whatever databases, file stores and internal services an organisation wires up behind it. That makes a LiteLLM instance a high-value hinge: it holds provider API keys and a master key, and it can reach the systems its MCP tools connect to. CVE-2026-59822 lets an unauthenticated attacker walk through that hinge.

The flaw carries a CVSS 4.0 base score of 8.8 (High) with the vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N; NVD also records a CVSS 3.1 score of 8.2 (High) (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N). Either way it is network-reachable, low-complexity, and needs no privileges or user interaction, with high confidentiality impact. It is tracked under CWE-287 (Improper Authentication) and CWE-306 (Missing Authentication for Critical Function), was published on 8 July 2026 under GitHub Security Advisory GHSA-7488-6r32-c95q, and is fixed in LiteLLM 1.84.0. It became far more urgent on 2 September, when CISA placed it on the KEV catalog off the back of observed exploitation.

How the LiteLLM Exploit Works

In plain terms: LiteLLM’s MCP endpoint is supposed to check your API key before letting you use any tools. When that check fails, a bug means the gateway doesn’t slam the door — it quietly opens it, treating the request as if it belongs to a user with no restrictions. So instead of guessing a valid key, an attacker just sends a made-up one and is waved through.

The root cause lives in the MCP Streamable HTTP endpoint’s OAuth2 passthrough handling. LiteLLM supports passing an upstream OAuth2 token through to backend MCP servers; when its own key validation fails, the fallback path was written to replace the failed validation with an empty UserAPIKeyAuth() object rather than return a 401. That empty object carries no key, no team, and no scope limits — so the request proceeds to the MCP tooling as an unauthenticated, unconstrained caller. An attacker only needs to present an Authorization header for the fabricated-token branch to trigger; Wiz observed reconnaissance using tokens as trivial as Bearer x.

What makes this dangerous is what sits behind the door. Once inside the MCP layer an attacker can enumerate and invoke configured tools, fingerprint which model providers are reachable, and reach into the gateway’s own state. Wiz saw attackers pull the LiteLLM master key straight out of the running process — querying Python module state for litellm_master_key_hash rather than touching disk — alongside harvesting provider API keys and probing MCP-connected internal resources. From an empty auth object to the keys of the whole gateway is a short walk.

Impact Nuance: an Auth Bypass, and the Flaws It Chains With

Two points deserve honesty. First, the score reflects a real subtlety. Under CVSS 4.0 this rates 8.8 and under CVSS 3.1 it rates 8.2 — both firmly High, but not the perfect 10.0 seen in some of the same KEV batch, because the direct impact is weighted to confidentiality (stealing keys and reaching tools) rather than a clean, single-request remote code execution. The bypass gets an attacker in; it is not by itself an RCE. Second, the real-world damage came from chaining. In Wiz’s honeypots the headline payload — XMRig cryptominers pulled from a remote host — was deployed by abusing a companion vulnerability, CVE-2026-42271, a command-injection flaw in an MCP test endpoint, after 59822 (or simple exposure) provided the access. So treat CVE-2026-59822 as the front door in a set: patching to 1.84.0 closes the bypass, but an exposed, unpatched LiteLLM is exposed to the cluster of MCP-related issues, not one bug in isolation.

When the key check fails, the gateway doesn’t reject the request — it replaces the failed check with an empty auth object and waves it through. A one-character bearer token is enough to reach the tools, the master key and everything behind them.

ATTACK CHAIN1Find an internet-facing LiteLLM MCP endpointLLM gateways are increasingly exposed; attackers scan for the MCP Streamable HTTP route.2Send a fabricated Authorization headerA trivial token such as “Bearer x” is enough to hit the OAuth2 passthrough fallback branch.3Failed validation returns an empty UserAPIKeyAuth()Instead of a 401, the request proceeds unauthenticated and unconstrained (CWE-287).4Enumerate MCP tools & steal keys from process statePull the master key (litellm_master_key_hash) and provider API keys; fingerprint backends.5Pivot to connected services — or chain to code executionReach MCP-connected resources; observed payloads chained CVE-2026-42271 to drop XMRig miners.
From a fabricated token to the gateway’s keys — reconstructed from the GHSA advisory and Wiz’s honeypot telemetry.

Active Exploitation of CVE-2026-59822

This is being exploited in the wild. Over a 90-day honeypot operation across AI frameworks, Wiz recorded sustained attacks against exposed LiteLLM and MCP endpoints, published on 2 September 2026. The observed activity is exactly what the flaw predicts: reconnaissance requests carrying trivial bearer tokens like Bearer x to test the bypass, followed by model enumeration, extraction of the LiteLLM master key and provider API keys from running process memory, and fingerprinting of reachable backends before deeper exploitation. The primary post-exploitation payload was cryptomining — XMRig binaries downloaded and run detached, with staging directories deleted to minimise forensic traces — deployed by chaining the companion command-injection flaw CVE-2026-42271 once access was established.

CISA added CVE-2026-59822 to its Known Exploited Vulnerabilities catalog on 2 September 2026 — one of seven flaws added that day, several of them AI-infrastructure or edge-appliance bugs — with a federal remediation deadline of 16 September 2026 under Binding Operational Directive 22-01. The message for everyone else is the same as for federal agencies: AI infrastructure is now a routine target, not a niche one, and an internet-exposed LiteLLM that has run unpatched should be treated as a place to investigate, not merely to patch.

DISCLOSURE TIMELINE8 Jul 2026GHSA-7488-6r32-c95q published; CVE assigned; fix ships in LiteLLM 1.84.0Jul–Sep 2026Wiz 90-day honeypots capture sustained MCP / LiteLLM attacks2 Sep 2026Wiz publishes findings; CISA adds CVE-2026-59822 to KEV3 Sep 2026NVD record updated with the KEV reference16 Sep 2026CISA BOD 22-01 federal remediation deadline
Published and patched in July, exploited through the summer, on the KEV catalog by early September.

Remediation & Mitigation: Patching LiteLLM

Upgrade immediately. Move LiteLLM to 1.84.0 or later — the release that fixes the OAuth2 passthrough fallback so a failed key check returns a rejection instead of an empty auth object. Every version below 1.84.0 with MCP enabled is affected. The key actions:

  • Patch every LiteLLM instance now to 1.84.0 or later (pip install --upgrade litellm, or pull the matching container image). This is an internet-reachable gateway under active exploitation — treat it as an emergency change, not a maintenance-window item.
  • Federal agencies must comply by 16 September 2026 under the CISA KEV listing; everyone else should treat that date as a sensible outer bound, not a target.
  • Take the gateway off the public internet. An LLM gateway and its MCP routes have no business being openly reachable — put them behind a VPN, reverse proxy or API gateway that enforces authentication, and restrict the MCP endpoints to trusted clients until you have patched.

If you were exposed, assume compromise. Because this bug leaks credentials from a running gateway, patching alone is not enough:

  • Rotate every secret the gateway held or could reach — the LiteLLM master key, all model-provider API keys, and any tokens or credentials exposed through MCP-connected services. Superuser-grade access to the gateway’s process state puts all of them within reach.
  • Hunt for the documented behaviours: abnormal MCP requests carrying trivial bearer tokens, credential-retrieval attempts reading process memory, model-backend fingerprinting queries, unexpected child processes and deleted staging directories, and outbound connections to cryptomining pools or unknown hosts. Wiz observed XMRig retrieval from remote infrastructure (reported host 185.62.1[.]8).
  • Check for the chained flaw. Confirm CVE-2026-42271 is also remediated and that MCP test endpoints are disabled or locked down, since that was the path to code execution in observed attacks.

Related ZeroDayHub Coverage

CVE-2026-59822 landed in the same 2 September 2026 CISA KEV batch as a run of unauthenticated, exploited flaws in self-hosted and AI infrastructure — a pattern we have tracked repeatedly. See our write-up of the Kestra unauthenticated RCE, added to KEV the same day, and of the Langflow RCE under active exploitation — different AI tools, the same lesson: an unauthenticated endpoint that reaches something powerful is all an attacker needs.

Sources & Further Reading

ZeroDayHub reports on vulnerabilities for defensive purposes only. This article deliberately omits working exploit code.

Leave a Reply

Trending