Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 86%

CVE-2026-59950: CWE-346: Origin Validation Error in modelcontextprotocol python-sdk

0
High
VulnerabilityCVE-2026-59950cvecve-2026-59950cwe-346cwe-1385
Published: 07/15/2026 (07/15/2026, 20:08:54 UTC)
Source: CVE Database V5
Vendor/Project: modelcontextprotocol
Product: python-sdk

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.

CVSS v4.0

Score 7.6high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

mcp
pkg:pypi/mcp
Affected versions
<1.28.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 22:55:03 UTC

Technical Analysis

CVE-2026-59950 describes a vulnerability in the MCP Python SDK's deprecated mcp.server.websocket.websocket_server transport, where WebSocket handshake requests did not validate the Host or Origin headers. This lack of origin validation means that applications exposing this transport could not restrict which origins were allowed to connect, potentially allowing unauthorized cross-origin WebSocket connections. The vulnerability is resolved in version 1.28.1 of the SDK.

Potential Impact

The vulnerability allows WebSocket connections from any origin due to missing Host and Origin header validation. This can lead to unauthorized cross-origin access to applications using the affected transport, potentially exposing sensitive data or functionality. The CVSS 4.0 score is 7.6 (high severity), indicating significant impact with network attack vector, low attack complexity, and partial user interaction required.

Mitigation Recommendations

Upgrade to version 1.28.1 or later of the MCP Python SDK, where the origin validation issue has been fixed. Since this is a client-side SDK and not a cloud service, users must apply the update themselves to remediate the vulnerability. Patch status is confirmed fixed in 1.28.1.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T18:49:15.607Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a57f21668715ace4371edee

Added to database: 07/15/2026, 20:48:22 UTC

Last enriched: 07/22/2026, 22:55:03 UTC

Last updated: 08/28/2026, 22:52:12 UTC

Views: 194

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses