Server-side Request Forgery (SSRF) Affecting litellm package, versions [,1.84.0.dev2)


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.21% (11th 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 Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-17391910
  • published21 Jun 2026
  • disclosed21 Jun 2026
  • creditEdward-x

Introduced: 21 Jun 2026

NewCVE-2026-12774  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.84.0.dev2 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the /v1/mcp/test/connection endpoint. An attacker can perform server-side request forgery (SSRF) by supplying a crafted token_url and arbitrary Machine-to-Machine (M2M) credentials to the connection testing endpoint. Due to incomplete validation of OAuth M2M flows, the proxy issues HTTP POST requests to attacker-controlled destinations, allowing internal network reconnaissance and potentially triggering unauthorized actions on reachable services.

Note: Exploitation requires an authenticated user with access to the /v1/mcp/test/connection (or /mcp-rest/test/connection) endpoint.

CVSS Base Scores

version 4.0
version 3.1