{"schema":"threatline.record/2","record":{"id":"CVE-2026-116686","aliases":["GHSA-rwrf-2pqf-9j8j"],"summary":"Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas","details":"### Summary\nIn 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:\n\n- 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\n- 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.\n\n### Am I affected?\nYes, 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.\n\nAffected versions: 1.10.0 through 1.29.1, and 2.0.0 through 2.1.1.\n\nNot affected: applications that only build servers. If nothing in your code uses `ClientSession`, `ClientSessionGroup` or the 2.x `Client` class, you are not affected.\n\n### Fix\nUpgrade 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.\n\nUntil 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 `#`.","categories":["Libraries & packages"],"product":"mcp","vendor":"modelcontextprotocol","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:05:30Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"ecosystem":"pip","name":"mcp"},"range":">= 2.0.0, < 2.2.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:05:30Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"ecosystem":"pip","name":"mcp"},"range":">= 1.10.0, < 1.30.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-116686","source_modified_at":"2026-10-27T19:29:16.001Z","fetched_at":"2026-10-27T21:14:11.489891Z","product":"python-sdk","vendor":"modelcontextprotocol","versions":[{"version":">= 1.10.0, < 1.30.0","status":"affected"},{"version":">= 2.0.0, < 2.2.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:15:03.830660129Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"name":"mcp","ecosystem":"PyPI","purl":"pkg:pypi/mcp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.0"}]}],"versions":["2.0.0","2.0.1","2.1.0","2.1.1"]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:15:03.830660129Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"name":"mcp","ecosystem":"PyPI","purl":"pkg:pypi/mcp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.10.0"},{"fixed":"1.30.0"}]}],"versions":["1.10.0","1.10.1","1.11.0","1.12.0","1.12.1","1.12.2","1.12.3","1.12.4","1.13.0","1.13.1","1.14.0","1.14.1","1.15.0","1.16.0","1.17.0","1.18.0","1.19.0","1.20.0","1.21.0","1.21.1","1.21.2","1.22.0","1.23.0","1.23.1","1.23.2","1.23.3","1.24.0","1.25.0","1.26.0","1.27.0","1.27.1","1.27.2","1.28.0","1.28.1","1.29.0","1.29.1"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:05:30Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"ecosystem":"pip","name":"mcp"},"version":"2.2.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:05:30Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"ecosystem":"pip","name":"mcp"},"version":"1.30.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:15:03.830660129Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"name":"mcp","ecosystem":"PyPI","purl":"pkg:pypi/mcp"},"version":"2.2.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j","source_modified_at":"2026-10-27T21:15:03.830660129Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"name":"mcp","ecosystem":"PyPI","purl":"pkg:pypi/mcp"},"version":"1.30.0"}],"cvss":6.5,"severity":"Medium","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-27T19:29:16.001Z","modified_at":"2026-10-27T21:15:03.830660129Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27T21:05:30Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-116686","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27T19:29:16.001Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-rwrf-2pqf-9j8j","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27T21:15:03.830660129Z"}],"sources":["GitHub Advisory Database","CVE List","OSV"],"references":[{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-rwrf-2pqf-9j8j","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/pull/3394","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/pull/3396","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/commit/5ebdfed4060d8e5b11b8e2348f86bad4d1fb8836","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/commit/6705402e246dc4eb1fcdf4d9902b78d3c9c36e1b","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-rwrf-2pqf-9j8j","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-27T21:15:03.830660129Z","content_hash":"87e288f49e6b6d5520224fb070dcb370c96a1e2d587c823ee3bffb342ef1342e"}}
