Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp
  4. ›
  5. CVE-2026-116686

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

October 27, 2026

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.

References

  • github.com/advisories/GHSA-rwrf-2pqf-9j8j
  • github.com/modelcontextprotocol/python-sdk/commit/5ebdfed4060d8e5b11b8e2348f86bad4d1fb8836
  • github.com/modelcontextprotocol/python-sdk/commit/6705402e246dc4eb1fcdf4d9902b78d3c9c36e1b
  • github.com/modelcontextprotocol/python-sdk/pull/3394
  • github.com/modelcontextprotocol/python-sdk/pull/3396
  • github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
  • github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0
  • github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-rwrf-2pqf-9j8j
  • nvd.nist.gov/vuln/detail/CVE-2026-116686

Code Behaviors & Features

Detect and mitigate CVE-2026-116686 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.10.0 before 1.30.0, all versions starting from 2.0.0 before 2.2.0

Fixed versions

  • 1.30.0
  • 2.2.0

Solution

Upgrade to versions 1.30.0, 2.2.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/mcp/CVE-2026-116686.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:25 +0000.