MCP Python SDK: WebSocket server transport does not support Host/Origin validation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MLflow | python-sdk | before 1.28.1 | 1.28.1 | Patch available | CNA |
| — | mcp (PyPI) | before 1.28.1 | 1.28.1 | Patch available | GHSA-vj7q-gjh5-988w |
- python-sdk VendorMLflow Affected before 1.28.1 Fixed in 1.28.1 Patch available CNA
- mcp (PyPI) Vendor— Affected before 1.28.1 Fixed in 1.28.1 Patch available GHSA-vj7q-gjh5-988w
Remediation
- Fix · CNA python-sdk (modelcontextprotocol) Fixed in 1.28.1
- Fix · GHSA-vj7q-gjh5-988w mcp (PyPI) Fixed in 1.28.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-59950
- 2026-10-03 Alias added: GHSA-vj7q-gjh5-988w
References
Patch 2
Advisory 2
More MLflow Mcp Python Sdk vulnerabilities
- TI-2025-40852 DNS Rebinding Protection Disabled by Default in Model Context Protocol Python SDK for Servers Running on Localhost CVSS 4.0HIGH 7.6
- TI-2026-37970 MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal CVSS 3.1HIGH 7.1
- TI-2026-37971 MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks CVSS 3.1HIGH 7.6
Sources
- CVE-2026-59950 · CVE Program
- CVE-2026-59950 · NVD
- FIRST EPSS
- GHSA-vj7q-gjh5-988w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences