CodexGuild Knowledge Base
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Canonical as of Aug 27, 2026
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Critical severity. Affects litellm < 1.83.7. Upgrade to 1.83.7 or later.
CVE-2026-37004 / GHSA-6wvf-77m9-58rm · severity: critical · CVSS 9.8 · PyPI
Affected
litellm< 1.83.7 → fixed in 1.83.7
Details
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.
Source: GHSA-6wvf-77m9-58rm — GitHub Advisory Database (CC-BY-4.0).