CVE-2026-59950
published high CVSS 4.0 · 7.6MCP Python SDK: WebSocket server transport does not support Host/Origin validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| modelcontextprotocol | — | python-sdk< 1.28.1 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| modelcontextprotocol | python-sdk | < 1.28.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-346 CWE-346: Origin Validation Error
- CWE-1385 CWE-1385: Missing Origin Validation in WebSockets
References
4- https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266
- https://github.com/modelcontextprotocol/python-sdk/pull/2992
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w
Provider assertions
2GitHub_M · cna
MCP Python SDK: WebSocket server transport does not support Host/Origin validation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d41d2d2c18212daf3861c18e4d100a4455d4dc3c884406d93b55ca858ed68127
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record