CVE-2026-59821 LOW

CVE-2026-59821: LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks

Vendor Berriai
Product litellm
Weakness CWE-94 · Code injection
Published July 8, 2026
Last update July 9, 2026

CVSS base score

2.1/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 8, 2026 CVE published
July 9, 2026 Record updated

Related vulnerabilities

04Related CVE