Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litellm
  4. ›
  5. CVE-2026-59822

CVE-2026-59822: LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback

July 22, 2026

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.

References

  • github.com/BerriAI/litellm/commit/73869f0faf7d11ee21adcb5f91b8c33a340b6c2c
  • github.com/BerriAI/litellm/pull/26463
  • github.com/BerriAI/litellm/releases/tag/v1.84.0
  • github.com/BerriAI/litellm/security/advisories/GHSA-7488-6r32-c95q
  • github.com/advisories/GHSA-7488-6r32-c95q
  • nvd.nist.gov/vuln/detail/CVE-2026-59822

Code Behaviors & Features

Detect and mitigate CVE-2026-59822 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.84.0

Fixed versions

  • 1.84.0

Solution

Upgrade to version 1.84.0 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

pypi/litellm/CVE-2026-59822.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:53 +0000.