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

Advisory record · `GHSA-vj7q-gjh5-988w`

- **Identifiers:** `GHSA-vj7q-gjh5-988w` · `CVE-2026-59950` · `PYSEC-2026-3483`
- **State:** Confirmed
- **Severity:** CVSS 7.6 High
- **Critical:** No
- **Weakness (CWE):** [CWE-346](https://cwe.mitre.org/data/definitions/346.html) · [CWE-1385](https://cwe.mitre.org/data/definitions/1385.html)
- **Tags:** [CWE-346](https://agentprime.io/advisories/tag/cwe-346.md) · [CWE-1385](https://agentprime.io/advisories/tag/cwe-1385.md)
- **Published:** 16 Jul 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Jul 2026, 20:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `mcp` (PyPI): affected `<1.28.1`; fixed in `1.28.1`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.6 High, 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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0023, the 13th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:29 UTC: First seen by agentprime
- 31 Oct 2026, 14:29 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-vj7q-gjh5-988w)

## Sources

- [GitHub Advisory Database: GHSA-vj7q-gjh5-988w](https://github.com/advisories/GHSA-vj7q-gjh5-988w)
- [OSV: GHSA-vj7q-gjh5-988w](https://osv.dev/vulnerability/GHSA-vj7q-gjh5-988w)
- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59950>
- <https://github.com/modelcontextprotocol/python-sdk/pull/2992>
- <https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266>
- <https://github.com/modelcontextprotocol/python-sdk>
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-vj7q-gjh5-988w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vj7q-gjh5-988w/>. Everything for agents: <https://agentprime.io/llms.txt>.
