Back to list

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

GitHub · GitHub · CVE-2026-42203

ID
CVE-2026-42203
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.6
EPSS
0.00047

Summary

### Impact 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…

Product

pip: litellm

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories