Skip to content
EventMonitoring

LiteLLM MCP gateway authentication bypass, fixed in 1.84.0

1 reports1 reporting sourcesplus 1 outlets covering itLatest report

Start here

AI overview

LiteLLM's MCP gateway has an authentication bypass vulnerability GHSA-7488-6r32-c95q, CVSS 3.1 score 8.8, disclosed 2026-06-30, affecting litellm < 1.84.0. The author reproduced it under stub authentication: replacing the authentication function with a stub that returns 401 for an invalid key, and directly calling process_mcp_request(), a request without x-litellm-api-key and with only a forged Bearer header was not rejected, returning a UserAPIKeyAuth with an empty api_key. According to the author, an unauthenticated attacker can use this to establish an authenticated MCP session and enumerate and invoke MCP tools behind the gateway. The root cause is that, to support OAuth2 token passthrough, the authentication code uses except to swallow the exception when key validation throws 401/403, returning an empty UserAPIKeyAuth(), which downstream treats as a legitimate session. The fix in 1.84.0 (commit 73869f0) only falls back to anonymous passthrough when the request points to an upstream configured with OAuth2 passthrough.

Generated by AI from reports · Updated 6 days ago

Progress timeline

Nov 16
  1. Xianzhi Community (Aliyun)Selected
    LiteLLM MCP gateway authentication bypass: author reproduces forged Bearer obtaining anonymous session under stubbed authentication

    LiteLLM's MCP gateway has an authentication bypass vulnerability GHSA-7488-6r32-c95q, CVSS 3.1 score 8.8, disclosed 2026-06-30, affecting litellm < 1.84.0. The author's reproduction replaced the authentication function with a stub that returns 401 for invalid keys, and directly called process_mcp_request(); a request without x-litellm-api-key and with only a forged Bearer header was not rejected and returned a UserAPIKeyAuth with an empty api_key; according to the author, an unauthenticated attacker can use this to establish an authenticated MCP session and enumerate and invoke MCP tools behind the gateway. The root cause is that, to support OAuth2 token passthrough, the authentication code uses except to swallow the exception when key validation throws 401/403, returning an empty UserAPIKeyAuth(), which downstream treats as a legitimate session. The fix in 1.84.0 (commit 73869f0) only falls back to anonymous passthrough when the request points to an upstream configured with OAuth2 passthrough; in the author's reproduction, the same call returned that object in 1.83.6 and was rejected with 401 in 1.84.0.

Related discussion

Total 1 items

Attention trend

New sources per day

2 in 14 days·most 1 (Nov 16)·today 0

  • Nov 16: 1 new sources (1 outlets, 0 accounts)
  • Nov 17: 0 new sources (0 outlets, 0 accounts)
  • Nov 18: 0 new sources (0 outlets, 0 accounts)
  • Nov 19: 0 new sources (0 outlets, 0 accounts)
  • Nov 20: 0 new sources (0 outlets, 0 accounts)
  • Nov 21: 0 new sources (0 outlets, 0 accounts)
  • Nov 22: 0 new sources (0 outlets, 0 accounts)
  • Nov 23: 0 new sources (0 outlets, 0 accounts)
  • Nov 24: 0 new sources (0 outlets, 0 accounts)
  • Nov 25: 0 new sources (0 outlets, 0 accounts)
  • Nov 26: 0 new sources (0 outlets, 0 accounts)
  • Nov 27: 0 new sources (0 outlets, 0 accounts)
  • Nov 28: 1 new sources (1 outlets, 0 accounts)
  • Nov 29: 0 new sources (0 outlets, 0 accounts)

Hourly attention

Current attention 40·Peak in the comparable period 40 (Nov 22 21:00)·Change over the comparable past 24 hours –

010203040Nov 2221:00Nov 2303:00Nov 2310:00Nov 2316:00