SQL Injection Affecting litellm package, versions [1.81.16,1.83.7)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-16300164
  • published26 Apr 2026
  • disclosed24 Apr 2026
  • creditUnknown

Introduced: 24 Apr 2026

NewCVE-2026-42208  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.83.7 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to SQL Injection via the token lookup query in the combined view path. An attacker can extract or manipulate records by supplying a crafted token value that is interpolated directly into the WHERE v.token = '{token}' clause. This affects the proxy’s combined-view token resolution logic and can expose or alter tenant-scoped data returned by the database query.

Workarounds

  • Set disable_error_logs: true under general_settings to prevent unauthenticated input from reaching the vulnerable proxy API key verification query path.

CVSS Base Scores

version 4.0
version 3.1