Authentication Bypass Using an Alternate Path or Channel Affecting litellm package, versions [,1.81.16)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-LITELLM-17391912
  • published21 Jun 2026
  • disclosed21 Jun 2026
  • creditEdward-x

Introduced: 21 Jun 2026

NewCVE-2026-12773  (opens in a new tab)
CWE-288  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.81.16 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Authentication Bypass Using an Alternate Path or Channel via exception handling in the MCP proxy authentication flow. An attacker can bypass authentication by supplying an arbitrary invalid token in the Authorization header. When API key validation raises a 401 or 403 exception, the exception is incorrectly swallowed and a default UserAPIKeyAuth object is created, allowing unauthenticated access to backend MCP servers configured with allow_all_keys: true. This may enable unauthorized access to data, execution of sensitive tools, or remote code execution depending on the capabilities exposed by the backend MCP servers.

Note: Exploitation requires at least one backend MCP server to be configured with allow_all_keys: true.

CVSS Base Scores

version 4.0
version 3.1