Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M

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

Low 2.1

In plain English

A low-severity code injection in litellm from BerriAI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.9%top 40.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlitellm1.82.0GHSA-72m8-9m7m-h278
PyPIlitellm1.82.0PYSEC-2026-3478

Affected products (as reported)

VendorProductVersions
BerriAI litellm < 1.82.0-stable

Weakness: CWE-94 · 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

References