Skip to content
LowVulnerabilityLLM-specific

CVE-2026-59821: LiteLLM code injection through Custom Code Guardrails create and update

Identifier
CVE-2026-59821
Published
Record updated
View JSON
Affected
  • litellm < 1.82.0
Fixed in
1.82.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

CVE-2026-59821 affects LiteLLM, an AI Gateway proxy server, before 1.82.0-stable. Its Custom Code Guardrails production create and update paths skipped the sandboxing and validation applied by the test endpoint, so a privileged user who can create or update guardrails can submit Python code that runs in the LiteLLM proxy environment and may expose secrets available to the process. The weakness is classified as CWE-94, Improper Control of Generation of Code.

Mitigation

Fixed in version 1.82.0-stable.