---
schema_version: '1.0'
id: security-20260915-1e7699
title: 'CVE-2026-12798: BerriAI litellm has SSRF via Unvalidated spec_path URL in
  MCP OpenAPI Spec Loader'
url: https://osv.dev/vulnerability/GHSA-c693-x898-5g4h
url_hash: 1e7699112fe0eda3f4e32a64e8aff8f9664bdb549eb3bc34a0b67718d2141e7d
canonical_url: https://osv.dev/vulnerability/GHSA-c693-x898-5g4h
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-12798
- GHSA-c693-x898-5g4h
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- litellm
- PyPI
lang: en
published_at: '2026-06-21T12:30:52Z'
fetched_at: '2026-09-15T16:00:53.457010Z'
updated_at: '2026-09-15T16:51:34Z'
status: published
content_hash: b42ae423cbf64761b4d257ef6f66a2bae9e44a905af39c87653ecafb4f6e3bff
content_changed_at: null
license_note: full
summary: BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec
  Loader
summary_source: rss
summary_en: BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI
  Spec Loader
summary_omitted_reason: null
redistribution: true
keywords_en:
- BerriAI
- CVE
- CVE-2026-12798
- GHSA-c693-x898-5g4h
- has
- library vulnerability
- LiteLLM
- Loader
- MCP
- OpenAPI
- PyPI
- PyPI:click
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- software security
- Spec
- spec_path
- SSRF
- Unvalidated
- URL
- via
- Zxavian
entities_en:
- name: CVE
  type: data
- name: has
  type: UNKNOWN
- name: LiteLLM
  type: organization
- name: PyPI:click
  type: artifact
- name: Zxavian
  type: person
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: PyPI:click
  type: artifact
- name: has
  type: UNKNOWN
- name: Zxavian
  type: person
key_facts: []
related: []
related_auto:
- name: CVE識別子
  type: 概念
  weight: 8.6
- name: Concept
  type: UNKNOWN
  weight: 1.0
- name: OSV
  type: organization
  weight: 1.0
- name: NVD
  type: concept
  weight: 1.0
- name: LM Studio
  type: organization
  weight: 1.0
computed_at: '2026-09-15T16:51:15Z'
---

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

## TL;DR
BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader

## Key Points
- cve / CVE-2026-12798 / GHSA-c693-x898-5g4h / severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L / litellm / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
**Advisory:** GHSA-c693-x898-5g4h (CVE-2026-12798)

**Details:**
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

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-c693-x898-5g4h_

## Source
元記事: [CVE-2026-12798: BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader](https://osv.dev/vulnerability/GHSA-c693-x898-5g4h) — published 2026-06-21T12:30:52Z
