Home/ Blog/ Security news/ Article
Blog · Security news

LiteLLM CVE-2026-59822: MCP Auth Bypass, Exploited, Patch Now

CVE-2026-59822 is an actively exploited MCP auth bypass in the LiteLLM gateway. Patch to 1.84.0 and rotate every stored provider and virtual key now.

Central hexagonal hub linked by thin threads to many smaller nodes, one thread frayed

CISA's Known Exploited Vulnerabilities catalog spent years listing firewalls, VPN gateways, and mail servers. On September 2 it started listing something else: the software your AI stack is assembled from. Three of the seven flaws CISA added that day sit inside self-hosted AI and developer infrastructure, and all three are already being exploited. The hard part for defenders is not the patch. It is that you cannot inventory a Python library the way you inventory a SonicWall box, and the sharpest of the three is the one place your model provider keys all live.

That flaw is CVE-2026-59822 in LiteLLM, an open-source gateway that sits in front of your language-model providers and hands out access to them. It carries a high severity rating, CVSS 8.2 in the project's own advisory. The other two are Starlette (CVE-2026-48710, CVSS 6.5), the framework a large share of Python web services quietly runs on, and Kestra (CVE-2026-49869, CVSS 10.0), a workflow engine.

What CVE-2026-59822 hands an attacker

LiteLLM's flaw lives in its Model Context Protocol (MCP) endpoint. MCP is the protocol that lets AI agents call external tools. The gateway supported an OAuth2 passthrough for upstream MCP servers, and the fallback in that path had a bug: when validation of a LiteLLM key failed, it dropped back to an empty authentication object instead of rejecting the request. A caller who sends any made-up authorization header therefore reaches the MCP tooling without holding a real key. In plain terms, a stranger can log in to the tool endpoint with a token it invents.

The blast radius is what makes this worse than a typical gateway bug. An LLM gateway is a credential concentrator. It stores the API keys for every upstream provider you use and mints its own proxy virtual keys for the apps behind it. Break the front door and you inherit the whole key ring, plus whatever the connected MCP tools can touch: databases, cloud accounts, internal apps. According to reporting from The Hacker News, that is the pattern in the wild. Attackers chained their way past authentication, dropped XMRig cryptocurrency miners, reached the PostgreSQL backend, and pulled out stored provider key material and the proxy-issued virtual keys.

Why this is not a normal appliance CVE

A SonicWall or an Artifactory box shows up in an asset register. You know you own it, you know where it sits, and a scan finds it. The AI-stack additions do not behave that way, and that is the real story here.

Starlette is the ASGI foundation that FastAPI is built on, so most teams running it never installed it on purpose; it arrived as a dependency of something else. Its flaw lets an attacker inject a path into the host portion of a request, which slips past authorization checks that trust the reconstructed URL path. Kestra is a workflow engine whose flaw is an unauthenticated command injection scored a full 10.0. Microsoft documented likely exploitation as early as late June: a reverse shell, Docker environment discovery, defense evasion, a crypto miner, and data collection through the workflow tasks themselves. None of these is a device you rack. They are libraries and services woven into applications, which means the first defensive question, "do we even run this," is genuinely hard to answer.

Source: CISA KEV catalog, September 2, 2026.

The gateway is the IAM of your AI stack

It is worth naming what LiteLLM's role actually is, because it changes how you should prioritize this. The gateway is the identity and access layer for everything your models touch. Every app authenticates to it, every provider key lives behind it, and increasingly every agent tool is reachable through its MCP endpoint. Treat a compromise of it the way you would treat a compromise of your identity provider, not the way you would treat a single vulnerable web app.

MCP is the part to watch going forward. Its whole purpose is to give an agent reach into tools and data. An authentication bypass on the MCP endpoint converts that designed reach into an attacker's reach, and CVE-2026-59822 is one of the first MCP-protocol auth failures to land on CISA's actively-exploited list. We have written about MCP going wrong before, from a token leak in a Grafana MCP server to a container escape in Docker's MCP gateway. This is the same surface, now with confirmed exploitation behind it. It is also the second serious LiteLLM issue we have tracked this quarter, after the supply-chain incident that, according to that reporting, briefly compromised its releases in August.

Rotate the keys before you trust the patch

Kestra's federal deadline was September 5 and has already passed; LiteLLM and Starlette are due September 16. Meeting the deadline means patching to the fixed builds: LiteLLM 1.84.0, Starlette 1.0.1, Kestra 1.0.45 or 1.3.21. But patching only closes the door. It does not rotate the provider keys the gateway already stored, revoke the virtual keys it issued, or end a session an attacker opened with a forged token. For any LiteLLM instance that was reachable before you patched, treat the stored secrets as burned: rotate every upstream provider key, reissue the virtual keys, and hunt for what a pre-patch intruder may have left behind, from XMRig processes to workflow runs and MCP sessions nobody on your team started. This is the difference between closing the exposure and knowing whether it was already used, and only the second one tells you if you are clear.

check exposure on each host that runs the service
pip show litellm       # exposed if version < 1.84.0
pip show starlette     # exposed if < 1.0.1  (FastAPI pulls this in transitively)
docker image ls | grep kestra   # exposed if below 1.0.45 or 1.3.21

The wider signal is the one to carry out of this. CISA's catalog is no longer just about the perimeter. The dependency layer of the AI stack is now a confirmed target, and the tools that make self-hosted AI convenient, a gateway that holds all your keys and a protocol that reaches all your tools, are exactly what an attacker wants most.

ComponentCVEFlawCVSSFixed inKEV deadline
LiteLLM (LLM gateway)CVE-2026-59822MCP auth bypass8.21.84.0Sep 16, 2026
Starlette (ASGI framework)CVE-2026-48710Request smuggling6.51.0.1Sep 16, 2026
Kestra (workflow engine)CVE-2026-49869Unauth command injection10.01.0.45 / 1.3.21Sep 5, 2026
Topics

Frequently asked questions

What is CVE-2026-59822?

CVE-2026-59822 is an improper-authentication flaw in the LiteLLM gateway's Model Context Protocol endpoint. A fallback in its OAuth2 passthrough dropped to an empty authentication object when key validation failed, so a request with a fabricated authorization header could reach MCP tooling without a valid LiteLLM key. CISA lists it as actively exploited.

Which LiteLLM versions are affected and what is the fix?

All LiteLLM versions before 1.84.0 are affected, and the fix is in 1.84.0. The project advisory rates it CVSS 8.2. Federal agencies have until September 16, 2026 to patch it under CISA's KEV deadline, but any reachable instance should be updated immediately.

Is CVE-2026-59822 being exploited?

Yes. CISA added it to the Known Exploited Vulnerabilities catalog on September 2, 2026, which confirms observed exploitation. Reporting describes attackers bypassing authentication, deploying XMRig cryptocurrency miners, and reaching the PostgreSQL backend to steal stored provider keys and proxy-issued virtual keys.

Why did CISA add LiteLLM, Starlette, and Kestra together?

All three are self-hosted AI and developer infrastructure that CISA confirmed as actively exploited on September 2, 2026. LiteLLM is an LLM gateway, Starlette is the framework behind many FastAPI services, and Kestra is a workflow engine. Together they show attackers targeting the dependency layer of the AI stack, not just perimeter appliances.

Does patching LiteLLM make me safe?

No, patching alone is not enough if the gateway was reachable before you updated. The fix does not rotate the provider keys LiteLLM stored, revoke the virtual keys it issued, or end sessions an attacker opened with a forged token. Rotate every key and hunt for miners, unexpected workflows, and unknown MCP sessions.

Ready to meet the Guardians?

Deploys fast - agentless for monitoring and cloud, a lightweight agent for deep endpoint security. Just Suriq, standing watch.