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

CVE-2026-42208: LiteLLM has SQL Injection in Proxy API key verification

April 24, 2026 (updated May 4, 2026)

A database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy’s error-handling path.

An attacker could read data from the proxy’s database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages.

References

  • github.com/BerriAI/litellm
  • github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
  • github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc
  • github.com/advisories/GHSA-r75f-5x8p-qvmc
  • nvd.nist.gov/vuln/detail/CVE-2026-42208

Code Behaviors & Features

Detect and mitigate CVE-2026-42208 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 starting from 1.81.16 before 1.83.7

Fixed versions

  • 1.83.7

Solution

Upgrade to version 1.83.7 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/litellm/CVE-2026-42208.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:23 +0000.