# CVE-2026-12798: BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS: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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-06-21T09:30:08.242Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-c693-x898-5g4h, PYSEC-2026-4069
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- BerriAI litellm: 1.82.0; 1.82.1; 1.82.2
- litellm (PyPI): up to 1.82.2
- litellm litellm: up to 1.82.2

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS: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`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 6.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS: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 Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS: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`

## References

- <https://vuldb.com/submit/811290> (exploit, third-party-advisory, vdb-entry, web)
- <https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a> (exploit, third-party-advisory, web)
- <https://vuldb.com/vuln/372560> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/vuln/372560/cti> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/cve/CVE-2026-12798> (third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12798> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-c693-x898-5g4h> (advisory)

## Sources

- CVE List: [CVE-2026-12798](https://www.cve.org/CVERecord?id=CVE-2026-12798), CVE Terms of Use, modified 2026-06-22
- GitHub Advisory Database: [GHSA-c693-x898-5g4h](https://github.com/advisories/GHSA-c693-x898-5g4h), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-12798](https://nvd.nist.gov/vuln/detail/CVE-2026-12798), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-4069](https://osv.dev/vulnerability/PYSEC-2026-4069), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-12798 · Whole record: https://cve.day/CVE-2026-12798.json · Rebuilt by cve.day 2026-11-25T22:59:25.323Z
