7.2

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

Analyzed
AliasesGHSA-72m8-9m7m-h278PYSEC-2026-3478
Published 08-07-2026Last modified 09-07-2026

Vulnerability summary

CVE-2026-59821 is a high (CVSS 7.2) Improper Control of Generation of Code vulnerability in berriai litellm. EPSS estimates a 0.73% chance of exploitation in the next 30 days, higher than 55.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 2.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.2/10
010
High · v3.1 (NVD)
EPSS score
0.73%
0%100%
Low · -0.17 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 08-07-2026
    PublishedVulnerability first disclosed.
  2. 09-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.73%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

Decrease -0.17 pp

From 0.90% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Berriai1 product
Litellm1 product
PyPI1 product
  • litellm< 1.82.0

3 vendors · 3 products

References

7 links