CVE-2026-59950
Last modified
CVE-2026-59950 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Lfprojects | Mcp Python Sdk | < 1.28.1 |
References
- https://github.com/modelcontextprotocol/python-sdk/pull/2992Issue Tracking, Patch
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-59950?
How severe is CVE-2026-59950?
How do I fix CVE-2026-59950?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59942Dompdf is an HTML to PDF converter for PHP. Versions 3.15 an…7.5
- CVE-2026-59943Dompdf is an HTML to PDF converter for PHP. In versions 3.15…5.3
- CVE-2026-59946Composer is a dependency Manager for the PHP language. Prior…6.1
- CVE-2026-59947Composer is a dependency Manager for the PHP language. Prior…4.7
- CVE-2026-59948Composer is a dependency Manager for the PHP language. Prior…7
- CVE-2026-5995A weakness has been identified in Totolink A7100RU 7.4cu.231…9.8
- CVE-2026-59952Valibot helps validate data using a schema. Versions prior t…6.9
- CVE-2026-59954Apollo is a reliable configuration management system suitabl…7.5
- CVE-2026-59955Apollo is a reliable configuration management system suitabl…7.5
- CVE-2026-5996A security vulnerability has been detected in Totolink A7100…9.8
- CVE-2026-5997A vulnerability was detected in Totolink A7100RU 7.4cu.2313_…9.8
- CVE-2026-5998A flaw has been found in zhayujie chatgpt-on-wechat CowAgent…5.5
Are you affected by CVE-2026-59950?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
