# GHSA-C693-X898-5G4H: BerriAI litellm has SSRF via Unvalidated spec\_path URL in MCP OpenAPI Spec Loader

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-06-21
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-12798](https://cve.now/CVE-2026-12798.md): BerriAI litellm MCP OpenAPI Spec Loader openapi\_to\_mcp\_generator.py load\_openapi\_spec\_async server-side request forgery

## Also published as

- [PYSEC-2026-4069](https://cve.now/PYSEC-2026-4069.md) (PyPA)

## Affected versions

- litellm (PyPI): through 1.82.2

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

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-12798
- https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a
- https://github.com/BerriAI/litellm
- https://vuldb.com/cve/CVE-2026-12798
- https://vuldb.com/submit/811290
- https://vuldb.com/vuln/372560
- https://vuldb.com/vuln/372560/cti

Page: https://cve.now/GHSA-C693-X898-5G4H

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
