Improper Neutralization of Special Elements Used in a Template Engine Affecting litellm-1.83 package, versions <1.83.10-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.06% (19th 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 IDSNYK-MINIMOSLATEST-LITELLM183-16327812
  • published1 May 2026
  • disclosed8 May 2026

Introduced: 1 May 2026

NewCVE-2026-42203  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade Minimos:latest litellm-1.83 to version 1.83.10-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream litellm-1.83 package and not the litellm-1.83 package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.

CVSS Base Scores

version 3.1