ADVISORIES

Vulnerability

CVE-2026-59950

The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to 1.28.1, the deprecated mcp.server.websocket.websocket_server transport accepted WebSocket handshakes without applying Host or Origin header validation, leaving no SDK-level way to restrict which origins could connect to applications that exposed that transport. This issue is fixed in version 1.28.1.

9 advisories report this vulnerability, across 3 ecosystems.

Advisories in PyPI

  • GHSA-vj7q-gjh5-988w

    MCP Python SDK: WebSocket server transport does not support Host/Origin validation

    High CVE-2026-59950 PyPI Updated 10 September 2026
  • PYSEC-2026-3483

    MCP Python SDK: WebSocket server transport does not support Host/Origin validation

    CVE-2026-59950 PyPI Updated 23 July 2026

References