# CVE-2026-12798: BerriAI litellm MCP OpenAPI Spec Loader openapi\_to\_mcp\_generator.py load\_openapi\_spec\_async server-side request forgery

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-21 · Modified: 2026-06-22
- Aliases: GHSA-c693-x898-5g4h, PYSEC-2026-4069
- Record: https://cvemate.com/vulnerability/CVE-2026-12798 · JSON: https://cvemate.com/vulnerability/CVE-2026-12798/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v2.0, CVE.org) AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR
- EPSS: 0.262%, percentile 19.136%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- berriai litellm: 1.82.0 \| 1.82.1 \| 1.82.2
- litellm litellm: ≤ 1.82.2
- PyPI litellm (PyPI): ≤ 1.82.2

## References

- <https://vuldb.com/vuln/372560>
- <https://vuldb.com/vuln/372560/cti>
- <https://vuldb.com/cve/CVE-2026-12798>
- <https://vuldb.com/submit/811290>
- <https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12798>
- <https://github.com/BerriAI/litellm>
- <https://pypi.org/project/litellm>
- <https://github.com/advisories/GHSA-c693-x898-5g4h>

---

Data as of 2026-12-05T08:28:42.030Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
