CVE-2026-59950: Cross-origin WebSocket access in MCP Python SDK
- Vendor
- Lfprojects
CVE-2026-59950 affects the deprecated WebSocket server transport in the MCP Python SDK, distributed as the PyPI mcp package, before version 1.28.1. The websocket_server function accepts WebSocket handshakes without validating Host or Origin headers and provides no SDK-level origin restriction. A malicious web page can establish a cross-origin connection to a reachable MCP server lacking separate authentication or origin restrictions, complete MCP initialization, invoke exposed tools, and read resources. The resulting impact depends on the server's exposed capabilities and execution privileges.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthorized interaction with exposed MCP tools and resources. Depending on server capabilities, this can disclose sensitive files and configuration credentials, execute host commands, and compromise confidentiality and integrity in the hosting environment. Malicious operations execute with the permissions of the local user running the SDK application; host command execution is conditional on the availability of a tool providing that capability.
Mitigation
If you can’t patch tonight, do this now.
Enforce separate authentication and origin restrictions for exposed MCP WebSocket endpoints. In version 1.28.1 or later, configure TransportSecuritySettings with enable_dns_rebinding_protection=True and appropriate allowed_hosts and allowed_origins, ensuring validation occurs before accepting the WebSocket connection. Migration to Streamable HTTP is an alternative; FastMCP automatically enables this protection for localhost binds.
Remediation
Patch, then assume compromise.
Upgrade the PyPI mcp package to version 1.28.1 or later and explicitly configure security_settings for the WebSocket transport to enforce appropriate Host and Origin restrictions. Alternatively, migrate to Streamable HTTP; the deprecated WebSocket transport is removed in version 2. For affected bundled deployments, upgrade HCL iControl to version 4.5.0 or HCL BigFix RunBookAI to version 11.3 through the supported product upgrade process.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-59950 exploited in the wild?
- As of Oct 9, 2026, Mallory has no reports of CVE-2026-59950 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-59950?
- As of Oct 9, 2026, Mallory has found no public exploit for CVE-2026-59950.
- Is there a patch for CVE-2026-59950?
- Upgrade the PyPI mcp package to version 1.28.1 or later and explicitly configure security_settings for the WebSocket transport to enforce appropriate Host and Origin restrictions. Alternatively, migrate to Streamable HTTP; the deprecated WebSocket transport is removed in version 2.
- What products are affected by CVE-2026-59950?
- Lfprojects Mcp Python Sdk.
- How severe is CVE-2026-59950?
- CVE-2026-59950 has a CVSS v4 score of 7.6 (High) and an EPSS score of 0.23% (8th percentile) as of Oct 9, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.