All vulnerabilities

Servers and applications

CVE-2026-42203

Server-Side Template Injection in /prompts/test endpoint

Severity
High 8.6
Published
20 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.83.7
Exploit chance
0.4% in the next 30 daysHigher than 31% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Server-side template injection (CWE-1336)Code injection (CWE-94)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-xqmj-j6mv-4862
Sources
NVD, Project advisories (GitHub)

Description

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.

Proxy deployments running an affected version are in scope.

From BerriAI/litellm's security advisory.

Workarounds

If upgrading is not immediately possible:

  • Block POST /prompts/test at your reverse proxy or API gateway.
  • Review and rotate API keys that should not have access to prompt management routes.
Workarounds as given by BerriAI/litellm's security advisory.

Affected software

SoftwareAffected versions
LiteLLMServers and applications · cpe:a:litellm:litellm
  • From 1.80.5 before 1.83.7
LiteLLMServers and applications · github:berriai/litellm
  • From 1.80.5 before 1.83.7

About LiteLLM

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

From its GitHub repository.
Weekly downloads (PyPI)
23,483,590PyPI Stats, 15 Nov 2026
GitHub stars
63,271GitHub, 15 Nov 2026
Forks
13,287GitHub, 15 Nov 2026
Latest release
v1.109.1GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
First published on GitHub
27 Jul 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42203
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42203
  • GitHub Advisory Database https://github.com/advisories/GHSA-xqmj-j6mv-4862
  • github.com https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862