CVE-2026-42203

LiteLLM: Server-Side Template Injection in /prompts/test endpoint

HIGH
8.8
CVSS Score
Published: May 8, 2026 at 03:36 AM UTC
Updated: October 26, 2026 at 08:10 PM UTC
3 products affected across 3 vendorsLiteLLMLiteLLMAnsible Automation Platform

Using litellm by BerriAI?

Get instant alerts when new vulnerabilities affect litellm - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.80.5 ≤ v < 1.83.7
Affected range stops below 1.83.7, so it looks safe — our inference, not a vendor statement
1.80.5 ≤ v < 1.83.7
Affected range stops below 1.83.7, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-42203
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2467917

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHredhat-SADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1336CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card