Cyber Resilience

CVE-2026-59950

Lfprojects Mcp Python Sdk ≤ 1.28.1

Published
15 July 2026
Modified
17 July 2026
Patch / advisory
CVSS Score v4 7.6
Click a component to see what it means
Raw vectorCVSS: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
EPSS Score 0.0015 5th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2026-59950 is a high-severity Origin Validation Error (CWE-346) vulnerability in Lfprojects Mcp Python Sdk. Its CVSS base score is 7.6 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 5th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the Protocol-Specific Risks risk domain.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

restrict which origins could connect to applications that exposed that transport. This issue is fixed in version 1.28.1.

CWE(s)

AI Security AnalysisAI

AI Category
AI Agent Protocols and Integrations
Risk Domain
Protocol-Specific Risks
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: mcp, mcp, model context protocol, mcp, mcp

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Why these techniques?

Missing Origin/Host validation on WebSocket server directly enables unauthorized external connections to a public-facing MCP application (T1190).

Confidence: MEDIUM · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-52870Same product: Lfprojects Mcp Python Sdk
CVE-2026-52869Same product: Lfprojects Mcp Python Sdk
CVE-2025-66416Same product: Lfprojects Mcp Python Sdk
CVE-2026-27896Same vendor: Lfprojects
CVE-2026-44429Same vendor: Lfprojects
CVE-2026-44430Same vendor: Lfprojects
CVE-2026-34237Same vendor: Lfprojects
CVE-2026-29791Same vendor: Lfprojects
CVE-2025-68145Same vendor: Lfprojects
CVE-2026-25536Same vendor: Lfprojects

Affected Assets

lfprojects
mcp python sdk
≤ 1.28.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • AC-4 Information Flow Enforcement
  • AC-3 Access Enforcement
  • SI-10 Information Input Validation
Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V4.4.2

Mitigating Controls (NIST 800-53 r5) AI

prevent

Enforces origin- and host-based information flow policies on WebSocket handshakes, directly blocking the missing header validation that enables unauthorized cross-origin connections.

prevent

Requires the websocket_server transport to enforce access decisions based on Origin/Host attributes before accepting connections, preventing the unrestricted handshake flaw.

prevent

Mandates validation of all input headers (including Origin and Host) during WebSocket upgrade requests, addressing the root cause of the CWE-346 validation omission.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 full match
prevents

Secure SDLC practices directly require origin validation for WebSocket endpoints.

PR.AA-03 mostly match
prevents

Authentication directly verifies the source of users/services/hardware, mitigating origin validation failures.

PR.AA-04 mostly match
prevents

Verifying identity assertions enforces origin validation for conveyed claims.

ID.AM-03 partial match
prevents

Documenting authorized flows supports origin validation by defining expected sources.

PR.AA-05 partial match
prevents

Enforcing authorization policy on incoming connections can require origin checks.

PR.IR-01 partial match
prevents

Protecting networks from unauthorized access requires origin checks on communication sources.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing can detect missing origin validation in WebSocket implementations.

mitigates

Network security controls enforce origin validation at network boundaries.

mitigates

Security of network services includes validating the authenticity of service endpoints.

mitigates

Network segregation reduces exposure but does not directly validate origins.

prevents

Application security requirements explicitly call for origin validation of inputs and communications.

prevents

Secure architecture principles encourage origin checks but do not mandate them.

References