---
schema_version: '1.0'
id: security-20261028-3b32ef
title: 'CVE-2026-116686: Model Context Protocol Python SDK: Client fetched server-chosen
  $ref URLs while validating tool results against output schemas'
url: https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j
url_hash: 3b32ef9deb0347d1395e86d7f0547ed6e1b5fae312d38cc4a674938a1a205741
canonical_url: https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-116686
- GHSA-rwrf-2pqf-9j8j
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- mcp
- PyPI
lang: en
published_at: '2026-10-27T21:05:29Z'
fetched_at: '2026-10-28T12:20:30.917943Z'
updated_at: '2026-10-28T15:41:01Z'
status: published
content_hash: 577e06d8eb7f1c21a8e4b15e03ae9b274bb882ead2979ab502eb8292864cae88
content_changed_at: null
license_note: full
summary: 'Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs
  while validating tool results against output schemas'
summary_source: rss
summary_en: 'Model Context Protocol Python SDK: Client fetched server-chosen $ref
  URLs while validating tool results against output schemas'
summary_omitted_reason: null
redistribution: true
keywords_en:
- against
- Client
- Context
- ContextManagement
- cve
- CVE-2026-116686
- fetched
- GHSA-rwrf-2pqf-9j8j
- gts-mcp
- library vulnerability
- mcp
- Model
- ModelPress
- output
- Protocol
- PyPI
- PyPIのBrotliパッケージ
- Python
- ref
- results
- schemas
- SDK
- server-chosen
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
entities_en:
- name: ContextManagement
  type: tool
- name: gts-mcp
  type: organization
- name: ModelPress
  type: organization
- name: PyPIのBrotliパッケージ
  type: organization
- name: Shay McVeigh
  type: person
- name: ヘルシンコ Protocols
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: Shay McVeigh
  type: person
- name: gts-mcp
  type: organization
- name: PyPIのBrotliパッケージ
  type: organization
- name: ModelPress
  type: organization
- name: ContextManagement
  type: tool
- name: ヘルシンコ Protocols
  type: organization
key_facts: []
related: []
related_auto:
- name: context管理
  type: artifact
  weight: 7.8
- name: wiki-mcp
  type: organization
  weight: 7.2
- name: PHP
  type: concept
  weight: 1.0
- name: サカナクション
  type: organization
  weight: 1.0
computed_at: '2026-10-28T15:40:37Z'
---

# CVE-2026-116686: Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas

## TL;DR
Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas

## Key Points
- cve / CVE-2026-116686 / GHSA-rwrf-2pqf-9j8j / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H / mcp / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
**Advisory:** GHSA-rwrf-2pqf-9j8j (CVE-2026-116686)

**Details:**
### Summary
In affected versions, when a connected MCP server declared an `outputSchema` for a tool, the SDK's client validated each `call_tool` result with `jsonschema`'s default resolver, which fetches any `$ref` it cannot resolve locally by opening the URL. A server could therefore put an `http://`, `https://` or `file://` reference in a tool's output schema and make the client:

- request that URL, or read that local file, from the client's own network position on every call of the tool (the content was used only as a schema and never sent back to the server), and
- stall: the fetch ran synchronously on the event loop with no timeout, so a target that accepted the connection and then went quiet froze every session in the process for as long as it held the connection.

### Am I affected?
Yes, if your application uses the SDK as an MCP client (`ClientSession` over any transport, `ClientSessionGroup`, or the 2.x `Client`) and calls tools on servers you do not fully control. There was no setting that turned the validation off.

Affected versions: 1.10.0 through 1.29.1, and 2.0.0 through 2.1.1.

Not affected: applications that only build servers. If nothing in your code uses `ClientSession`, `ClientSessionGroup` or the 2.x `Client` class, you are not affected.

### Fix
Upgrade to `mcp` 1.30.0 (1.x) or 2.2.0 (2.x) or later. The client now resolves references only within the schema document the server sent (plus the standard JSON Schema metaschemas), so result validation performs no network or file access. A tool whose output schema points outside its own document fails at call time with `RuntimeError` (`Invalid schema for tool ...`); in-document references such as `#/$defs/...` work as before.

Until you can upgrade, call tools only on servers you trust. As a partial stopgap, skip tools whose `outputSchema` contains an `$id`, or a `$ref` / `$dynamicRef` that does not start with `#`.

**References:**
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-rwrf-2pqf-9j8j
- https://github.com/modelcontextprotocol/python-sdk/pull/3394
- https://github.com/modelcontextprotocol/python-sdk/pull/3396
- https://github.com/modelcontextprotocol/python-sdk/commit/5ebdfed4060d8e5b11b8e2348f86bad4d1fb8836
- https://github.com/modelcontextprotocol/python-sdk/commit/6705402e246dc4eb1fcdf4d9902b78d3c9c36e1b
- https://github.com/modelcontextprotocol/python-sdk
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j_

## Source
元記事: [CVE-2026-116686: Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas](https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j) — published 2026-10-27T21:05:29Z
