CVE-2026-116686

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

Published Oct 27, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
The Model Context Protocol Python SDK is the official Python SDK for Model Context Protocol servers and clients. From 1.10.0 until 1.30.0 and 2.2.0, ClientSession, ClientSessionGroup, and Client tool calls validate server-declared outputSchema documents with jsonschema's default resolver, causing an unresolved $ref value to fetch an HTTP, HTTPS, or file URL from the client's network and filesystem context. A server can trigger blind requests or local-file reads and can stall every session in the process because resolution runs synchronously on the event loop without a timeout. This issue is fixed in versions 1.30.0 and 2.2.0.

Analysis

AI-generated

Technical impact

The Model Context Protocol Python SDK performs JSON schema validation of output schemas using jsonschema’s default resolver. When a server supplies a malicious outputSchema that contains a $ref pointing to any HTTP, HTTPS, or file URL, the client will fetch that URL during validation. This can trigger blind network requests, unauthorized local file reads, and can stall every session in the process because the resolution runs synchronously on the event loop without a timeout.

Affected Systems

The vulnerable range includes all deployments of the Model Context Protocol Python SDK from version 1.10.0 up to but not including 1.30.0, and from 2.0.0 up to but not including 2.2.0. The issue was resolved in releases 1.30.0 and 2.2.0.

Risk and Exploitability

The vulnerability has a CVSS score of 6.5, indicating a moderate risk level. The EPSS score is < 1%, suggesting a very low exploitation probability, and it is not listed in the CISA KEV catalog. A malicious server that can instruct the SDK to validate a schema with a remote or local $ref can trigger blind network requests or local file reads, or consume all of the client’s event-loop resources by blocking the resolution step without a timeout. Therefore, while not enabling remote code execution, the flaw poses a significant threat to confidentiality and availability for any systems that rely on this SDK to validate server-supplied schemas.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed SDK version (v1.30.0 or v2.2.0 or newer).
  • If an upgrade is not immediately possible, reconfigure or monkey‑patch jsonschema’s resolver to prevent external $ref resolution or to enforce a strict timeout for reference resolution.
  • Restrict the client’s outbound network access or run the SDK in a sandboxed environment that blocks HTTP/HTTPS and file URL requests to mitigate blind request or file read attacks.

Generated by OpenCVE AI on October 29, 2026 at 14:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rwrf-2pqf-9j8j Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Modelcontextprotocol
Modelcontextprotocol python-sdk
Vendors & Products Modelcontextprotocol
Modelcontextprotocol python-sdk
Type Values Removed Values Added
Description The Model Context Protocol Python SDK is the official Python SDK for Model Context Protocol servers and clients. From 1.10.0 until 1.30.0 and 2.2.0, ClientSession, ClientSessionGroup, and Client tool calls validate server-declared outputSchema documents with jsonschema's default resolver, causing an unresolved $ref value to fetch an HTTP, HTTPS, or file URL from the client's network and filesystem context. A server can trigger blind requests or local-file reads and can stall every session in the process because resolution runs synchronously on the event loop without a timeout. This issue is fixed in versions 1.30.0 and 2.2.0.
Title Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-1322

    Use of Blocking Code in Single-threaded, Non-blocking Context

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 4:13 PM
Reserved
Oct 26, 2026, 8:00 PM
Status
Deferred
Published
Oct 27, 2026, 8:17 PM
Modified
Oct 28, 2026, 5:18 PM
Severity
Moderate
Public date
Oct 27, 2026, 7:29 PM