Intel

AIKIDO-2026-854642

litellm is vulnerable to Server-Side Template Injection (SSTI)

CVE-2026-37004Published Oct 6, 2026
October 6, 2026

98

CVE Score

Critical

Server-Side Template Injection (SSTI)

Are you affected? Scan for Free

TL;DR

The LiteLLM proxy's /prompts/test endpoint passes a caller supplied dotprompt_content parameter through an unsandboxed jinja2.Environment instead of keeping it as static text. An unauthenticated remote caller can craft dotprompt_content using Jinja2 template syntax to reach Python internals and run arbitrary operating system commands on the proxy host. The fix removes the unsandboxed Jinja2 path from the endpoint.

How do I fix this?

Upgrade the litellm library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 1.83.6

Fixed in 1.83.7

Background info

litellm is vulnerable to Server-Side Template Injection (SSTI) in versions 0.0.1 - 1.83.6.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea