Back to CVE records
High 8.6Published May 7, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects BerriAI litellm and 4 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
8.6 HIGH (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-1336, CWE-94
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Jul 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
BerriAI litellm
berriai:litellm (from the name)
from 1.80.5, < 1.83.7
CNA record
Red Hat Exploit Intelligence
redhat:exploit_intelligence
0
CISA ADP
Red Hat Red Hat Ansible Automation Platform 2
redhat:ansible_automation_platform
2
CISA ADP
Versions not stated
CISA ADP
litellm litellm
litellm:litellm
from 1.80.5 before 1.83.7
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.