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

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-15T20:08:54.095Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-vj7q-gjh5-988w, PYSEC-2026-3483
- Weaknesses: CWE-346, CWE-1385
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- modelcontextprotocol python-sdk: < 1.28.1
- mcp (PyPI): before 1.28.1
- lfprojects mcp_python_sdk: before 1.28.1

## Every score

- GitHub_M: CVSS:4.0 7.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w> (vendor-advisory, web)
- <https://github.com/modelcontextprotocol/python-sdk/pull/2992> (issue-tracking, patch, web)
- <https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266> (patch, web)
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59950> (advisory)
- <https://github.com/modelcontextprotocol/python-sdk> (package)
- <https://pypi.org/project/mcp> (package)
- <https://github.com/advisories/GHSA-vj7q-gjh5-988w> (advisory)

## Sources

- CVE List: [CVE-2026-59950](https://www.cve.org/CVERecord?id=CVE-2026-59950), CVE Terms of Use, modified 2026-07-17
- GitHub Advisory Database: [GHSA-vj7q-gjh5-988w](https://github.com/advisories/GHSA-vj7q-gjh5-988w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59950](https://nvd.nist.gov/vuln/detail/CVE-2026-59950), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3483](https://osv.dev/vulnerability/PYSEC-2026-3483), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-59950 · Whole record: https://cve.day/CVE-2026-59950.json · Rebuilt by cve.day 2026-11-25T22:59:28.350Z
