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

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-07-08T19:14:13.265Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-72m8-9m7m-h278, PYSEC-2026-3478
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- BerriAI litellm: < 1.82.0-stable
- litellm (PyPI): before 1.82.0
- litellm litellm: before 1.82.0; 1.82.0

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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

- <https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278> (mitigation, patch, vendor-advisory, web)
- <https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba> (patch, web)
- <https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59821> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-72m8-9m7m-h278> (advisory)

## Sources

- CVE List: [CVE-2026-59821](https://www.cve.org/CVERecord?id=CVE-2026-59821), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-72m8-9m7m-h278](https://github.com/advisories/GHSA-72m8-9m7m-h278), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59821](https://nvd.nist.gov/vuln/detail/CVE-2026-59821), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3478](https://osv.dev/vulnerability/PYSEC-2026-3478), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-59821 · Whole record: https://cve.day/CVE-2026-59821.json · Rebuilt by cve.day 2026-11-25T22:59:27.423Z
