All vulnerabilities

PyPI

CVE-2026-116686

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

Severity
Medium 6.5
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.30.0, 2.2.0
Exploit chance
0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Also known as
GHSA-rwrf-2pqf-9j8j
Sources
OSV.dev and GitHub

Description

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.
From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
mcpPyPI · osv:PyPI:mcp
  • From 1.10.0 before 1.30.0
  • From 2.0.0 before 2.2.0

About mcp

Weekly downloads (PyPI)
81,015,080PyPI Stats, 23 Nov 2026

References