{"id":"CVE-2026-12798","aliases":["GHSA-c693-x898-5g4h"],"title":"BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader","summary":"BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader","severity":"medium","cvss":6.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","vendor":"litellm","product":"litellm","ecosystem":"pip","affected":["litellm <= 1.82.2"],"published":"2026-06-21","updated":"2026-09-14","sourceUpdated":"2026-09-14T18:27:48.226628117Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-c693-x898-5g4h","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12798"},{"url":"https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a"},{"url":"https://github.com/BerriAI/litellm"},{"url":"https://vuldb.com/cve/CVE-2026-12798"},{"url":"https://vuldb.com/submit/811290"},{"url":"https://vuldb.com/vuln/372560"},{"url":"https://vuldb.com/vuln/372560/cti"},{"url":"https://github.com/advisories/GHSA-c693-x898-5g4h"}],"tags":["osv","pip","ghsa"],"epss":0.004,"epssPercentile":0.34032,"cwe":["CWE-918"],"ingestedAt":"2026-09-14T18:12:17.165Z","slug":"CVE-2026-12798","body":"## Overview\n\nA 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.\n\n## Affected packages\n\n- `litellm <= 1.82.2`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":35,"depthScoreParts":{"impact":34.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":205413,"id":"CVE-2026-12798","ts":1789575630686,"field":"severity","old":"low","new":"medium"}]}