GitHub Advisoryadvisory · PyPI
GHSA-c693-x898-5g4h BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
LOW
Official page ↗
- Aliases
- CVE-2026-12798
- Ecosystem
- PyPI
- Packages
- litellm
- Severity
- Low
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-918
- Reviewed
- 2026-09-14
Affected packages
• PyPI litellm: <= 1.82.2 (no fix yet)
Description
A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of the argument spec_path causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure.
Related
Alias · CVE (1)
- CVE-2026-12798 A weakness has been identified in BerriAI litellm up to 1.82.2. vulnerability
Weakness · CWE (1)
- CWE-918 Server-Side Request Forgery weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-12798 advisory
- https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a web
- https://github.com/BerriAI/litellm package
- https://vuldb.com/cve/CVE-2026-12798 web
- https://vuldb.com/submit/811290 web
- https://vuldb.com/vuln/372560 web
- https://vuldb.com/vuln/372560/cti web