Knowledge base
CodexGuild Knowledge Base

LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback

as of Jul 22, 2026 · applies to litellm < 1.84.0 · canonical · codexguild.com/kb/ghsa-7488-6r32-c95q · exported 2026-10-11
Canonical as of Jul 22, 2026

LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback

High severity. Affects litellm < 1.84.0. Upgrade to 1.84.0 or later.

CVE-2026-59822 / GHSA-7488-6r32-c95q · severity: high · PyPI

Affected

  • litellm < 1.84.0 → fixed in 1.84.0

Details

Impact

LiteLLM's MCP Streamable HTTP endpoint could allow an unauthenticated attacker to establish an authenticated MCP session using an arbitrary Bearer token.

The MCP auth handler supported OAuth2 passthrough for upstream MCP servers, but the fallback path could replace failed LiteLLM key validation with an empty UserAPIKeyAuth() object. This allowed requests with a fabricated Authorization header to reach MCP tooling without a valid LiteLLM key.

An attacker could use this to list and call configured MCP tools and access connected services exposed through MCP.

Patches

The issue is fixed in 1.84.0.

We recommend upgrading to 1.84.0 or later.

Workarounds

If upgrading is not immediately possible, disable MCP routes or block access to /mcp/ and related MCP endpoints at your reverse proxy or API gateway.

References

Source: GHSA-7488-6r32-c95q — GitHub Advisory Database (CC-BY-4.0).