Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litellm
  4. ›
  5. CVE-2026-12798

CVE-2026-12798: BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader

June 21, 2026 (updated September 14, 2026)

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

  • gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a
  • github.com/advisories/GHSA-c693-x898-5g4h
  • nvd.nist.gov/vuln/detail/CVE-2026-12798
  • vuldb.com/cve/CVE-2026-12798
  • vuldb.com/submit/811290
  • vuldb.com/vuln/372560
  • vuldb.com/vuln/372560/cti

Code Behaviors & Features

Detect and mitigate CVE-2026-12798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.82.2

Solution

Unfortunately, there is no solution available yet.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/litellm/CVE-2026-12798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:06 +0000.