CVE-2026-37004 — Vulnerability in litellm — CVE Details
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Summary
Advisory Timeline
- First published August 27, 2026 (45 days ago).
- Last revised September 10, 2026 — 14 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "litellm>=1.83.7"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| litellm | pypi | 0.1.0, 0.1.1, 0.1.2, 0.1.201 (+730 more) | 1.83.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1336
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004ADVISORY
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457cWEB
- https://github.com/BerriAI/litellmPACKAGE
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073WEB
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableWEB
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rceWEB
Frequently Asked Questions
- What is CVE-2026-37004?
- LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-37004?
- CVE-2026-37004 affects litellm. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-37004 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-2952CRITICAL
LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint
- CVE-2026-49468CRITICAL
LiteLLM: Authentication Bypass via Host Header Injection
- CVE-2024-5751CRITICAL
litellm vulnerable to remote code execution based on using eval unsafely
- CVE-2026-35029CRITICAL
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
- CVE-2026-49468CRITICAL
LiteLLM: Authentication Bypass via Host Header Injection
- CVE-2026-35030CRITICAL
LiteLLM: Authentication bypass via OIDC userinfo cache key collision
- CVE-2026-42208CRITICAL
LiteLLM has SQL Injection in Proxy API key verification
- CVE-2026-35029HIGH
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies