Skip to main content
Mallory
HighVulnerability

CVE-2026-59950: Cross-origin WebSocket access in MCP Python SDK

Published Jul 15, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.6High · v4
EPSS0.23%8th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Lfprojects
IdentifiersCVE-2026-59950CWE-346 · Origin Validation Error

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LfprojectsMcp Python Sdkapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.