Skip to content
HighVulnerabilityLLM-specific

GHSA-xqmj-j6mv-4862: LiteLLM: Server-Side Template Injection in /prompts/test endpoint

Published
Record updated
View JSON
Affected
  • litellm >= 1.80.5, < 1.83.7
Fixed in
1.83.7
  • released April 13, 2026, 11 days before disclosure

Summary

LiteLLM's POST /prompts/test endpoint rendered user-supplied prompt templates without sandboxing, so a crafted template could run arbitrary code inside the LiteLLM Proxy process. Any caller with a valid proxy API key can reach the endpoint, which may expose environment secrets and allow host commands depending on deployment.

Mitigation

Fixed in 1.83.7-stable, which switches the prompt template renderer to a sandboxed environment. LiteLLM recommends upgrading to 1.83.7-stable or later. If upgrading is not immediately possible, block POST /prompts/test at your reverse proxy or API gateway, and review and rotate API keys that should not have access to prompt management routes.