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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (27th 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-22989488
  • published26 Nov 2026
  • disclosed24 Nov 2026
  • creditUnknown

Introduced: 24 Nov 2026

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

How to fix?

Upgrade litellm to version 1.84.0 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 improper validation of the api_base parameter in chat completion requests within is_request_body_safe. The check_complete_credentials() function returns True for any non-empty api_key, allowing api_base and base_url values pointing at private (RFC 1918), loopback, link-local, or cloud-metadata addresses to bypass the SSRF guard. An authenticated attacker can supply a malicious api_base URI to coerce the application into sending unauthorized requests to internal network resources, disclosing sensitive information in the context of the service account. Additionally, when api_base is redirected to an attacker-controlled server, admin-configured secrets such as organization, extra_headers, azure_ad_token, and cloud credentials flow through to the attacker.

CVSS Base Scores

version 4.0
version 3.1