CVE-2026-59821

published 8 Jul 2026 · updated 9 Jul 2026

LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks

2.1LowCVSS 2.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
BerriAILiteLLM<1.82.0-stable

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in LiteLLM, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-59821 severity on Zeptric[![CVE-2026-59821](https://zeptric.io/badge/cve/CVE-2026-59821.svg)](https://zeptric.io/cve/CVE-2026-59821)