CVE-2026-12798
JSON

5.3medium

BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery

Severity
5.3medium CVSS:4.0 by VulDB
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulDB
Also known as
GHSA-c693-x898-5g4hPYSEC-2026-4069

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

Product or packageVersionsReported by
BerriAI litellm1.82.0, 1.82.1, 1.82.2CVE List
litellm (PyPI)up to 1.82.2GitHub Advisory Database, PyPA Advisory Database
litellm litellmup to 1.82.2NVD

All scores

VulDB5.3medium CVSS:4.0CVSS:4.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
VulDB6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB6.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR
GitHub6.3low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHublow CVSS:4.0CVSS:4.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
PyPA Advisory Database6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.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

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se ha identificado una debilidad en BerriAI litellm hasta la versión 1.82.2. Afectada por esta vulnerabilidad es la función load_openapi_spec_async del archivo litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py del componente MCP OpenAPI Spec Loader. Esta manipulación del argumento spec_path causa falsificación de petición del lado del servidor. Es posible iniciar el ataque de forma remota. El exploit ha sido puesto a disposición del público y podría ser utilizado para ataques. El proveedor fue contactado con antelación sobre esta divulgación.

References

https://vuldb.com/vuln/372560technical-description, third-party-advisory, vdb-entry, web
https://vuldb.com/vuln/372560/ctipermissions-required, signature, vdb-entry, web
https://vuldb.com/cve/CVE-2026-12798third-party-advisory, vdb-entry, web
https://vuldb.com/submit/811290exploit, third-party-advisory, vdb-entry, web
https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5aexploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-12798advisory
https://github.com/BerriAI/litellmpackage
https://pypi.org/project/litellmpackage
https://github.com/advisories/GHSA-c693-x898-5g4hadvisory

Sources

SourceRecordLicence
CVE ListCVE-2026-12798 changed 2026-06-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-c693-x898-5g4h changed 2026-10-01CC-BY-4.0
NVDCVE-2026-12798 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-4069 changed 2026-10-01CC-BY-4.0