Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-59821 EUVD-2026-42350GHSA-72m8-9m7m-h278PYSEC-2026-3478

LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
BerriAI litellm < 1.82.0-stable —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI litellm < 1.82.0 1.82.0 GHSA-72m8-9m7m-h278

Advisories 1

References