Vulnerability

CVE-2026-59950

highCVSS 4.0 7.6Published 15 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Lfprojects mcp python sdk

Weakness type

References

  • github.com /modelcontextprotocol/python-sdk/commit/777b8d06710c140e360…
  • github.com /modelcontextprotocol/python-sdk/pull/2992
  • github.com /modelcontextprotocol/python-sdk/releases/tag/v1.28.1
  • github.com /modelcontextprotocol/python-sdk/security/advisories/GHSA-v…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning