| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-59950 |
| Date (index) | 2026-07-15 |
| Affected product (index) | MCP Python SDK (mcp): deprecated WebSocket server transport DNS rebinding / origin class |
| GHSA ID | GHSA-vj7q-gjh5-988w |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-07-15 |
| Ecosystem | PyPI |
| Component | mcp.server.websocket.websocket_server |
| EPSS score | 0.001810000 (FIRST EPSS, 2026-07-16) |
| CVSS score | 7.6 (v4) |
| CWE | CWE-346 / CWE-1385 |
| Affected versions | < 1.28.1 |
| Fixed versions | 1.28.1 |
| Fix status | Patched |
| Exploit status | Public advisory |
| Notes | Added during 2026-07-17 gap review. Deprecated transport; not reachable through FastMCP. Removed entirely in Python SDK v2. |
The deprecated WebSocket server transport accepted handshakes without Host or Origin header validation. TransportSecuritySettings used by SSE and Streamable HTTP was not wired into the WebSocket transport.
Servers that manually expose mcp.server.websocket.websocket_server on localhost or LAN without separate auth. Victim must visit a malicious page (passive user interaction).
Missing origin validation on WebSocket upgrade (CWE-346, CWE-1385).
A malicious website can drive cross-origin tool invocation against a locally reachable WebSocket MCP server, exfiltrating tool output depending on exposed capabilities.
Upgrade to mcp >= 1.28.1 and pass TransportSecuritySettings with enable_dns_rebinding_protection=True and appropriate allowlists. Prefer migrating to Streamable HTTP.