---
schema_version: '1.0'
id: security-20260910-f29ac4
title: 'CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the
  /prompts/test endpoint'
url: https://osv.dev/vulnerability/PYSEC-2026-3861
url_hash: f29ac4de85e40b6caea6ef519e8258d0cf176819aeb6f0e7cb7c1cc04b04ff69
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3861
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-37004
- PYSEC-2026-3861
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- litellm
- PyPI
lang: en
published_at: '2026-09-10T09:44:57Z'
fetched_at: '2026-09-10T15:44:17.944966Z'
updated_at: '2026-09-10T15:52:22Z'
status: published
content_hash: fb1945595eaeaa5654bd444257387d12e589c567efef9b97579122f06e8a7503
content_changed_at: null
license_note: full
summary: LiteLLM vulnerable to server-side template injection in the /prompts/test
  endpoint
summary_source: rss
summary_en: LiteLLM vulnerable to server-side template injection in the /prompts/test
  endpoint
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-37004
- endpoint
- injection
- library vulnerability
- LiteLLM
- prompts
- PyPI
- PYSEC-2026-3861
- server-side
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- software security
- template
- test
- the
- vulnerable
- Wiki_Templates
entities_en:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: Wiki_Templates
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: Wiki_Templates
  type: artifact
key_facts: []
related: []
related_auto:
- name: 集団的免疫力
  type: concept
  weight: 1.0
computed_at: '2026-09-10T15:52:18Z'
---

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

## TL;DR
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

## Key Points
- cve / CVE-2026-37004 / PYSEC-2026-3861 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H / litellm / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
**Advisory:** PYSEC-2026-3861 (CVE-2026-37004)

**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.

**References:**
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-6wvf-77m9-58rm

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-3861_

## Source
元記事: [CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint](https://osv.dev/vulnerability/PYSEC-2026-3861) — published 2026-09-10T09:44:57Z
