Skip to content
OpenAdvisories
High · 7.6 CVE-2026-59950 EUVD-2026-44798GHSA-vj7q-gjh5-988wPYSEC-2026-3483

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

Published Jul 15, 2026 · Updated Jul 17, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
modelcontextprotocol python-sdk < 1.28.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling semgrep 1.172.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mcp < 1.28.1 1.28.1 GHSA-vj7q-gjh5-988w

References