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.
References
| Link | Resource |
|---|---|
| https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a | Exploit Third Party Advisory |
| https://vuldb.com/cve/CVE-2026-12798 | Third Party Advisory VDB Entry |
| https://vuldb.com/submit/811290 | Third Party Advisory Exploit VDB Entry |
| https://vuldb.com/vuln/372560 | Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/372560/cti | Permissions Required VDB Entry |
Configurations
History
24 Jun 2026, 19:37
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Litellm
Litellm litellm |
|
| CPE | cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* | |
| References | () https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a - Exploit, Third Party Advisory | |
| References | () https://vuldb.com/cve/CVE-2026-12798 - Third Party Advisory, VDB Entry | |
| References | () https://vuldb.com/submit/811290 - Third Party Advisory, Exploit, VDB Entry | |
| References | () https://vuldb.com/vuln/372560 - Third Party Advisory, VDB Entry | |
| References | () https://vuldb.com/vuln/372560/cti - Permissions Required, VDB Entry |
21 Jun 2026, 10:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-06-21 10:16
Updated : 2026-06-24 19:37
NVD link : CVE-2026-12798
Mitre link : CVE-2026-12798
CVE.ORG link : CVE-2026-12798
JSON object : View
Products Affected
litellm
- litellm
CWE
CWE-918
Server-Side Request Forgery (SSRF)
