{"cve":"CVE-2026-59821","nvd":{"published":"2026-07-08T20:16:57.547","modified":"2026-10-25T17:10:00.197","status":"Analyzed","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_v4":{"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","score":2.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2},"cwes":["CWE-94"],"references":["https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba","https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable","https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278"],"products":["litellm:litellm"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-59821","score":0.00904,"percentile":0.59529,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-72m8-9m7m-h278","url":"https://osv.dev/vulnerability/GHSA-72m8-9m7m-h278","summary":"LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks","modified":"2026-09-10T03:51:10.829513778Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":["<1.82.0"],"fixed":["1.82.0"]}]},{"id":"PYSEC-2026-3478","url":"https://osv.dev/vulnerability/PYSEC-2026-3478","summary":"LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks","modified":"2026-07-23T15:00:14.016159175Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":["<1.82.0"],"fixed":["1.82.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}