CVE-2026-12798 Details
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.
A server-side request forgery (SSRF) vulnerability has been identified in BerriAI Litellm versions through 1.82.2. The issue arises in the MCP OpenAPI Spec Loader component, specifically within the 'load_openapi_spec_async' function. This function, located in 'litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py', processes user-controlled 'spec_path' URL parameters and sends HTTP GET requests without proper validation. As a result, authenticated users can exploit this vulnerability to access internal services, perform port scans, and exfiltrate cloud metadata credentials, such as AWS IAM temporary credentials.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a | [email protected] | ExploitThird Party Advisory |
| https://vuldb.com/cve/CVE-2026-12798 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/submit/811290 | [email protected] | Third Party AdvisoryExploitVDB Entry |
| https://vuldb.com/vuln/372560 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/372560/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| litellm litellm | <= 1.82.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 24, 2026 | Initial Analysis | [email protected] |
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 21, 2026 | New CVE Received | [email protected] |