Modelcontextprotocol python-sdk
MCP Python SDK: WebSocket server transport does not support Host/Origin validation
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.1high · scored by NVD · CWE-346
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
modelcontextprotocol python-sdk
- < 1.28.1
Fixed in 1.28.1
Mitigation
Upgrade python-sdk to 1.28.1 or later.
References
- Vendor advisory github.com/modelcontextprotocol/python-sdk/sec…
- Patch github.com/modelcontextprotocol/python-sdk/pul…
- Patch github.com/modelcontextprotocol/python-sdk/com…
1 more
- Release notes github.com/modelcontextprotocol/python-sdk/rel…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.