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.
CVE-2026-59950
This high-severity CVE scores 7.6 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.6
- EG Score
- 7.6(low)
- EPSS
- —
- KEV
- Not listed
Published
July 15, 2026
Last Modified
July 15, 2026
Advisory Details (4)
Auto-updated Jul 15, 2026v1.28.1
Patch available: modelcontextprotocol/python-sdk v1.28.1
https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1commit 777b8d06710c (modelcontextprotocol/python-sdk)
Fix landed in modelcontextprotocol/python-sdk commit 777b8d06710c — awaiting tagged release
https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266[v1.x] Support TransportSecuritySettings in the WebSocket server transport
Fix merged in modelcontextprotocol/python-sdk PR #2992 on 2026-06-26 — awaiting tagged release
https://github.com/modelcontextprotocol/python-sdk/pull/2992WebSocket server transport does not support Host/Origin validation · Advisory · modelcontextprotocol/python-sdk · GitHub
https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988wWeakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 2× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 20:35 UTCEG score recompute
- 2026-07-15 20:34 UTCMITRE cvelistV5first tracked
Frequently asked(4)
What is CVE-2026-59950?
When was CVE-2026-59950 disclosed?
What is the CVSS score of CVE-2026-59950?
How do I remediate CVE-2026-59950?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-59950
Is Your Infrastructure Affected by CVE-2026-59950?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.