---
schema_version: '1.0'
id: security-20261002-b6c90d
title: 'CVE-2026-12798: BerriAI litellm has SSRF via Unvalidated spec_path URL in
  MCP OpenAPI Spec Loader'
url: https://osv.dev/vulnerability/PYSEC-2026-4069
url_hash: b6c90dab7ec72adb77d8b04d64d93c54ac83220a96cfdabfd09cc323a953d9c0
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4069
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-12798
- PYSEC-2026-4069
- 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-10-01T16:38:27Z'
fetched_at: '2026-10-02T04:02:59.693384Z'
updated_at: '2026-10-02T05:19:37Z'
status: published
content_hash: c25f8469c7b8c378e7ee0b83a32914668e6d8ba48bedfc418d5cee6b2770dfe3
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
- CVE-2026-87817
- has
- Hase
- IQVIA
- library vulnerability
- litellm
- Loader
- MCP
- OpenAPI
- PyPI
- PYSEC-2026-4069
- 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
entities_en:
- name: CVE-2026-87817
  type: event
- name: Hase
  type: person
- name: IQVIA
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-87817
  type: event
- name: Hase
  type: person
- name: IQVIA
  type: organization
key_facts: []
related: []
related_auto:
- name: GitPython
  type: concept
  weight: 1.0
- name: hooks/pre-commit
  type: artifact
  weight: 1.0
- name: GitHub Security Advisory
  type: content
  weight: 1.0
computed_at: '2026-10-02T05:19:21Z'
---

# 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 / PYSEC-2026-4069 / 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:** PYSEC-2026-4069 (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
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-c693-x898-5g4h

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-4069_

## Source
元記事: [CVE-2026-12798: BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader](https://osv.dev/vulnerability/PYSEC-2026-4069) — published 2026-10-01T16:38:27Z
