{"schemaVersion":3,"id":"CVE-2026-59950","aliases":["GHSA-vj7q-gjh5-988w","PYSEC-2026-3483","CGA-4gfx-x85r-c5c7","CGA-7p29-3f7w-83w4","CGA-4r9q-fcvr-crjh","CGA-52c3-p52f-jj8w","CGA-7gfp-j673-fqj7","CGA-hgrc-5q37-54rv","CGA-m8j7-9jfp-frh4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-07-15T20:08:54.095Z","modified":"2026-07-17T12:28:19.431Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.6,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.6,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":7.6,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":7.6,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.6,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00231,"percentile":0.13033,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00231},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00231,"percentile":0.13033}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00231,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00231,"percentile":0.13033}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-346","name":"Origin Validation Error","description":"The product does not properly verify that the source of data or communication is valid.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/346.html"},{"id":"CWE-1385","name":"Missing Origin Validation in WebSockets","description":"The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1385.html"}],"affected":[{"vendor":"chainguard","product":"kserve-huggingfaceserver-cuda-13.3","name":"kserve-huggingfaceserver-cuda-13.3","label":"kserve-huggingfaceserver-cuda-13.3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/kserve-huggingfaceserver-cuda-13.3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.21.0-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.21.0-r4","eol":null,"hubHref":null},{"vendor":"chainguard","product":"litellm","name":"litellm","label":"litellm","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/litellm","purlType":"apk","versions":[{"text":"< 1.91.2-r2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.93.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.91.2-r2 | < 1.93.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"lmcache-cuda-12.8","name":"lmcache-cuda-12.8","label":"lmcache-cuda-12.8","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/lmcache-cuda-12.8","purlType":"apk","versions":[{"text":"< 0.5.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.3-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"semgrep","name":"semgrep","label":"semgrep","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/semgrep","purlType":"apk","versions":[{"text":"< 1.172.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.172.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"tritonserver-backend-vllm-cuda-13.0","name":"tritonserver-backend-vllm-cuda-13.0","label":"tritonserver-backend-vllm-cuda-13.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/tritonserver-backend-vllm-cuda-13.0","purlType":"apk","versions":[{"text":"< 25.11-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 25.11-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"semgrep","name":"semgrep","label":"semgrep","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/semgrep","purlType":"apk","versions":[{"text":"< 1.172.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.172.0-r1","eol":null,"hubHref":null},{"vendor":"lfprojects","product":"mcp_python_sdk","name":"mcp python sdk","label":"mcp_python_sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.28.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.28.1","eol":null,"hubHref":"/vendor/lfprojects/mcp_python_sdk"},{"vendor":"modelcontextprotocol","product":"python-sdk","name":"python-sdk","label":"python-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.28.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.28.1","eol":null,"hubHref":"/vendor/modelcontextprotocol/python-sdk"},{"vendor":"PyPI","product":"mcp","name":"mcp","label":"mcp","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mcp","purlType":"pypi","versions":[{"text":"< 1.28.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.28.1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w","label":"github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-vj7q-gjh5-988w","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Vendor Advisory"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/pull/2992","label":"github.com/modelcontextprotocol/python-sdk/pull/2992","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking","Patch"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266","label":"github.com/modelcontextprotocol/python-sdk/commit/777b8d06710c140e3606b0d4598e2aa48546c266","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1","label":"github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59950","label":"nvd.nist.gov/vuln/detail/CVE-2026-59950","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/modelcontextprotocol/python-sdk","label":"github.com/modelcontextprotocol/python-sdk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/mcp","label":"pypi.org/project/mcp","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-vj7q-gjh5-988w","label":"github.com/advisories/GHSA-vj7q-gjh5-988w","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59950.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59950.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-VJ32-4843-CPHJ"]},"timeline":[{"kind":"published","date":"2026-07-15T20:08:54.095Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-17T12:28:19.431Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:31:59.830Z","stale":false,"partial":false}}