High severity · published May 8, 2026
CVE-2026-42203
LiteLLM: Server-Side Template Injection in /prompts/test endpoint
8.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
litellm · BerriAI
>= 1.80.5, < 1.83.7 · source: vendor, NVD
RH
Red Hat Ansible Automation Platform 2 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-42203
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-42203
Product
https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
Mitigation
https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-42203
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2467917
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42203.json
More from litellm
9.8
CVE-2026-42208
LiteLLM: SQL injection in Proxy API key verification
8.8
CVE-2026-42271
LiteLLM: Authenticated command execution via MCP stdio test endpoints
8.8
CVE-2026-33634
Trivy ecosystem supply chain briefly compromised
8.2
CVE-2026-59822
LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback
9.9
CVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
