CVE-2026-12798
BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden, geringes Risiko, dass Daten oder Systeme verändert werden, geringes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | litellm | <= 1.82.2 | nicht erfasst |
Betroffene Produkte · Litellm
| Produkt | Betroffene Versionen |
|---|---|
| Litellm | bis einschließlich 1.82.2 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-c693-x898-5g4h
- https://nvd.nist.gov/vuln/detail/CVE-2026-12798
- https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a
- https://vuldb.com/cve/CVE-2026-12798
- https://vuldb.com/submit/811290
- https://vuldb.com/vuln/372560
- https://vuldb.com/vuln/372560/cti