CriticalGHSA-6wvf-77m9-58rmCVE-2026-37004PYSEC-2026-3861
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Published 27 Aug 2026 · Updated 10 Sept 2026
Is your project on an affected litellm?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
litellmPyPI
- Affected
- <1.83.7
- Fixed in
- 1.83.7
Update to the fixed version for your release line, for example:
pip install 'litellm>=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.
Is GHSA-6wvf-77m9-58rm in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected litellm, and gives you the command that fixes it.
More advisories for litellm
- HighGHSA-g5ff-637f-6q2mLiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials` · 27 Oct 2026
- MediumGHSA-hhww-mrg2-969hLiteLLM vulnerable to reflected XSS in /sso/debug/callback · 27 Oct 2026
- HighCVE-2026-114612LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key · 27 Oct 2026
- MediumCVE-2026-84377LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters · 30 Sept 2026
- MediumCVE-2026-59823LiteLLM Proxy has server-side request forgery via the `user_config` request parameter · 17 Sept 2026
- LowCVE-2026-59821LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks · 22 Jul 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-37004
- Linkgithub.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
- Packagegithub.com/BerriAI/litellm
- Linkgithub.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073
- Linkgithub.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- Linkyerangamage.com/cves/detail/?slug=litellm-ssti-rce
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.