PYSEC-2026-4069
BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2026-12798
- Alias
- GHSA-c693-x898-5g4h
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| PyPI · litellm | introduced 0, last affected 1.82.2 |
Références
- 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
- https://pypi.org/project/litellm PACKAGE
- https://github.com/advisories/GHSA-c693-x898-5g4h ADVISORY
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — PyPA Advisory Database |