Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

criticalCVSS 3.1 9.8GHSA-6wvf-77m9-58rm

BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows unauthenticated remote attackers to execute arbitrary OS commands via a crafted dotpromptcontent parameter in the /prompts/test endpoint due to use of an unsandboxed jinja2.Environment.

Published Aug 27, 2026 · Updated Sep 8, 2026

Affected packages

litellm

Ecosystem
PyPI
Affected
< 1.83.7
Fixed in
1.83.7
Check
pip show litellm

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows unauthenticated remote attackers to execute arbitrary OS commands via a crafted dotprompt_content parameter in the /prompts/test endpoint due to use of an unsandboxed jinja2.Environment.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries