CVE-2026-59821 json
LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks
published 4mo ago modified 17d ago also EUVD-2026-42350 , GHSA-72m8-9m7m-h278 , PYSEC-2026-3478
- cvss
- 7.2
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi litellm 1.82.0
- litellm litellm 1.82.0-stable
Is CVE-2026-59821 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-59821 updated cvss 7.2
litellm: LiteLLM: Arbitrary code execution and information disclosure via custom code guardrails
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat Lightspeed Core lightspeed-core/lightspeed-stack-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/lightspeed-chatbot-rhel9, ansible-automation-platform-27/lightspeed-chatbot-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4mo ago
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.1 | 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 |
| CNA | 4.0 | 2.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litellm | <1.82.0 |
1.82.0 |
Affected products
- BerriAI litellm
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba
web, patch
-
github.com
/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278
web, mitigation, patch, vendor-advisory, advisory
-
github.com
/BerriAI/litellm/releases/tag/v1.82.0-stable
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-59821
advisory
-
github.com
/BerriAI/litellm
package
-
pypi.org
/project/litellm
package
-
github.com
/advisories/GHSA-72m8-9m7m-h278
advisory
Sources
- CVE List CVE-2026-59821
- GitHub Advisory GHSA-72m8-9m7m-h278
- NVD CVE-2026-59821
- OSV PYSEC-2026-3478
- Maintainer advisory GHSA-72m8-9m7m-h278
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of BerriAI/litellm published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.