PYSEC-2026-3861
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Published Sep 10, 2026 · Source: OSV.dev. Data collected Sat, 28 Nov 2026 19:06:22 GMT.
The facts
| Advisory id | PYSEC-2026-3861 |
|---|---|
| CVE | CVE-2026-37004 |
| Package | litellm PyPI: litellm |
| Published | Sep 10, 2026 |
| Source severity | Unrated in the record we received |
| Our severity | low · 32 Advisory severity: unrated · Published 80 days ago · Confidence: GitHub Advisory Database / OSV · See the rules |
| Fix | Fixed in 1.83.7 |
| Source | OSV.dev |
Excerpt from the source
Copied from the official record, trimmed. Read the full source before acting.
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.
What to do
Upgrade litellm to 1.83.7 or later wherever it appears in your lockfiles or images; until then, restrict exposure of the affected feature. Log the assessment as vulnerability-management evidence.
Other recent advisories for this package
- GHSA-g5ff-637f-6q2m · Oct 27, 2026 · LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
- GHSA-hhww-mrg2-969h · Oct 27, 2026 · LiteLLM vulnerable to reflected XSS in /sso/debug/callback
- GHSA-7hp6-4w63-5g45 · Oct 27, 2026 · LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
- PYSEC-2026-4076 · Oct 1, 2026 · BerriAI litellm: SSO Login Does Not Invalidate Previous UI Session Tokens
- PYSEC-2026-4069 · Oct 1, 2026 · BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
- PYSEC-2026-4072 · Oct 1, 2026 · BerriAI litellm: UI User Enumeration leads to System-Wide Information Disclosure
- PYSEC-2026-4074 · Oct 1, 2026 · BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints
- PYSEC-2026-4071 · Oct 1, 2026 · LiteLLM: SSO Debug Flow Has Improper Authentication
This page restates a public advisory. Confirm the facts on the linked source before you act. BigBadAI is independent and not affiliated with the package authors. Data collected .