Medium severity · published Jun 21, 2026
CVE-2026-12798
BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery
6.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
litellm · BerriAI
1.82.0; 1.82.1; 1.82.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-12798
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-12798
Exploit
https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a
Third Party Advisory
https://vuldb.com/cve/CVE-2026-12798
Third Party Advisory
https://vuldb.com/submit/811290
Third Party Advisory
https://vuldb.com/vuln/372560
Permissions Required
https://vuldb.com/vuln/372560/cti
More from litellm
9.8
CVE-2026-42208
LiteLLM: SQL injection in Proxy API key verification
8.8
CVE-2026-42271
LiteLLM: Authenticated command execution via MCP stdio test endpoints
8.8
CVE-2026-33634
Trivy ecosystem supply chain briefly compromised
8.2
CVE-2026-59822
LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback
9.8
CVE-2026-49468
LiteLLM: Authentication Bypass via Host Header Injection
