CVE-2026-59950

MCP Python SDK: WebSocket server transport does not support Host/Origin validation

HIGH
8.1
CVSS Score
Published: July 15, 2026 at 08:08 PM UTC
Updated: October 24, 2026 at 09:10 PM UTC
2 products affected across 2 vendorsMcp Python SDKMcp Python SDK

Using python-sdk by modelcontextprotocol?

Get instant alerts when new vulnerabilities affect python-sdk - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.28.1
Affected range stops below 1.28.1, so it looks safe — our inference, not a vendor statement
v < 1.28.1
Affected range stops below 1.28.1, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-346CWE-1385

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card