CVE-2026-12798
BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery
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.
INFO
Published Date :
June 21, 2026, 10:16 a.m.
Last Modified :
June 24, 2026, 7:37 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Update BerriAI litellm to a version later than 1.82.2.
Public PoC/Exploit Available at Github
CVE-2026-12798 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-12798.
| URL | 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 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-12798 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-12798
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
The Project shares all information on MCP related CVE's published
mcp mcp-security mcp-cve
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-12798 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-12798 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 24, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions up to (including) 1.82.2 Added Reference Type VulDB: https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a Types: Exploit, Third Party Advisory Added Reference Type VulDB: https://vuldb.com/cve/CVE-2026-12798 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/submit/811290 Types: Exploit, Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/372560 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/372560/cti Types: Permissions Required, VDB Entry -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 22, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-12798', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-22T17:14:11.598867Z'} -
New CVE Received by [email protected]
Jun. 21, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*'], 'vendor': 'BerriAI', 'modules': ['MCP OpenAPI Spec Loader'], 'product': 'litellm', 'versions': [{'status': 'affected', 'version': '1.82.0'}, {'status': 'affected', 'version': '1.82.1'}, {'status': 'affected', 'version': '1.82.2'}]}] Added 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. Added CVSS V4.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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L Added CVSS V2 (AV:N/AC:L/Au:S/C:P/I:P/A:P) Added CWE CWE-918 Added Reference https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a Added Reference https://vuldb.com/cve/CVE-2026-12798 Added Reference https://vuldb.com/submit/811290 Added Reference https://vuldb.com/vuln/372560 Added Reference https://vuldb.com/vuln/372560/cti