MCPNews

The Model Context Protocol ecosystem, verified

Current spec 2026-07-28

MCP Python SDK advisory reports the deprecated WebSocket server transport skipped Host and Origin validation

The Python SDK maintainers published an advisory stating that the deprecated websocket_server() transport did not implement the TransportSecuritySettings mechanism used by the SDK's other HTTP-based transports, so a page served from any origin could complete a WebSocket upgrade against an exposed server. The fix is in 1.28.1.

The MCP Python SDK maintainers published advisory GHSA-vj7q-gjh5-988w (CVE-2026-59950) on July 7, rated High with a CVSS 7.6 score in the advisory record. The deprecated websocket_server() transport did not implement the TransportSecuritySettings mechanism that the SDK's other HTTP-based transports use for Host and Origin validation, so a page served from any origin could complete a WebSocket upgrade against an exposed server and, per the advisory, enumerate and invoke the server's tools and read its resources.

The blast radius is narrow by construction: only servers explicitly calling the deprecated websocket_server() function are affected, not standard FastMCP usage. A precision point for readers tracking transports: this WebSocket transport is an SDK-level extra, not one of the specification's transports (streamable-http, stdio, and the legacy SSE transport).

The fix predates the advisory by eleven days: v1.28.1, published June 26, carries PR #2992 adding TransportSecuritySettings support to the WebSocket server transport. The advisory credits five reporters. The affected package is mcp on PyPI below 1.28.1.

How was this verified, and what are the sources?

Published · last verified · confidence 0.95.

  1. python-sdk repository advisory GHSA-vj7q-gjh5-988w (CVE-2026-59950), published 2026-07-07 - High, CVSS 7.6; the deprecated websocket_server() transport "failed to implement the TransportSecuritySettings mechanism used by other HTTP-based transports", letting a malicious site "enumerate and invoke the server's tools and read its resources"; only servers explicitly calling the deprecated function are affected; five reporters credited - accessed
  2. GitHub Advisory Database record for GHSA-vj7q-gjh5-988w - affected package mcp (pip) below 1.28.1, patched 1.28.1, CVSS v4 score 7.6 - accessed
  3. GitHub release page for python-sdk v1.28.1 (published 2026-06-26) - changelog includes PR #2992 "[v1.x] Support TransportSecuritySettings in the WebSocket server transport" - accessed

← All news