{"id":"CVE-2026-59950","published":"2026-07-15T20:08:54Z","modified":"2026-07-17T12:28:19Z","title":"MCP Python SDK: WebSocket server transport does not support Host/Origin validation","vendor":"modelcontextprotocol","product":"python-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.13814,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-1385","name":"Missing Origin Validation in WebSockets"}],"references":[{"url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/pull/2992","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.76},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"python-sdk","versions":["< 1.28.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-17T12:28:09.718600Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp","vulnerableRanges":["<1.28.1"],"patched":["1.28.1"],"from":["GHSA-vj7q-gjh5-988w","PYSEC-2026-3483"],"provenance":"source"}],"summary":{"text":"The mcp Python SDK (python-sdk from modelcontextprotocol) has a flaw in its deprecated mcp.server.websocket.websocket_server transport, which accepts WebSocket handshakes without validating the Host or Origin headers, leaving no SDK-level way to restrict which origins can connect. An attacker can connect to an application exposing that transport from a cross-origin web context, which requires the victim to interact with a malicious page, and the attack is possible without authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:09Z"},"euvd":{"id":"EUVD-2026-44798","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-modelcontextprotocol-python-sdk-cve-2025-66416","children":[{"from":"CVE-2026-59950","to":"CVE-2026-109527","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mcp/server/transport_security.py"],"commits":["https://github.com/modelcontextprotocol/python-sdk/commit/03aaebd3aadb2567878dd811cb1f141454e8a080","https://github.com/modelcontextprotocol/python-sdk/commit/4dc224fab201bdef2fd5a065976b7ca31420187c","https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-66416","published":"2025-12-02","fixed":"1.23.0","kev":false},{"cve":"CVE-2026-52869","published":"2026-07-15","fixed":"1.27.2","kev":false,"link":{"from":"CVE-2026-52869","to":"CVE-2026-59950","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp","fromFixed":"1.27.2","toFixed":"1.28.1","daysApart":0}]}},{"cve":"CVE-2026-52870","published":"2026-07-15","fixed":"1.27.2","kev":false},{"cve":"CVE-2026-59950","published":"2026-07-15","fixed":"1.28.1","kev":false},{"cve":"CVE-2026-115563","published":"2026-11-16","fixed":"2.2.0","kev":false},{"cve":"CVE-2026-116684","published":"2026-10-27","fixed":"2.2.0","kev":false},{"cve":"CVE-2026-116685","published":"2026-10-27","fixed":"2.2.0","kev":false}],"package":"PyPI:mcp"}}