LiteLLM: Server-Side Template Injection in /prompts/test endpoint
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 provider API keys or database credentials) and allow commands to be run on the host.
Proxy deployments running an affected version are in scope.
Patches
The issue is fixed in 1.83.7-stable. The fix switches the prompt template renderer to a sandboxed environment that blocks the attributes this attack relies on.
LiteLLM recommends upgrading to 1.83.7-stable or later.
Workarounds
If upgrading is not immediately possible:
- Block
POST /prompts/testat your reverse proxy or API gateway. - Review and rotate API keys that should not have access to prompt management routes.
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Python (PyPI) | litellm | >= 1.80.5, < 1.83.7 | 1.83.7 |
Odnośniki
- https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862
- https://nvd.nist.gov/vuln/detail/CVE-2026-42203
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-xqmj-j6mv-4862
- Wektor CVSS
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- Słabość (CWE)
CWE-1336- Platforma
- Python (PyPI)
- Paczka
litellm- Ujawniono
- 24.04.2026
- Aktualizacja
- 11.10.2026 15:17
Źródła i licencje
OSV / GitHub Advisory Database - PYSEC-2026-2602 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-xqmj-j6mv-4862 - CC BY 4.0
Historia podatności: litellm
Wszystkie opisane podatności tej paczki (Python (PyPI)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 42
- Pierwsza → ostatnia
- 04.2024 09.2026
- Bez poprawki
- 14
- Wykorzystywana w atakach
- 3
Rozkład istotności
- Krytyczna 7
- Wysoka 17
- Średnia 8
- Niska 9
- Nieoceniona 1
Ujawnienia w latach
- 2024: 8
- 2025: 6
- 2026: 28
-
LiteLLM: Server-Side Template Injection in /prompts/test endpoint ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.