Vulnerability · Published Jun 21, 2026 · Assigned by VulDB
CVE-2026-12798BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery
Medium 6.3
In plain English
A medium-severity server-side request forgery in litellm from BerriAI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | litellm | no fix listed | GHSA-c693-x898-5g4h |
| PyPI | litellm | no fix listed | PYSEC-2026-4069 |
Affected products (as reported)
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-372560 | BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery vdb-entry, technical-description
- VDB-372560 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2026-12798 | CVE Analysis and Report third-party-advisory
- Submit #811290 | litellm latest Server-Side Request Forgery (SSRF) (CWE-918) third-party-advisory
- https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a exploit