A AegiFlow
LOWCVSS 2.1EPSS 0.4%

CVE-2026-12798

BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader

Published
2026-06-21
Modified
2026-09-14
EPSS percentile
34%
Aliases
GHSA-c693-x898-5g4h
Sources
github-advisory

Summary

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 packages

EcosystemPackageAffected versionsFixed versions
PyPIlitellm

Remediation: No patched version is listed by GitHub.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.