Origin Validation Error Affecting semgrep package, versions <1.172.0-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-SEMGREP-18470238
  • published31 Jul 2026
  • disclosed15 Jul 2026

Introduced: 15 Jul 2026

NewCVE-2026-59950  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-1385  (opens in a new tab)

How to fix?

Upgrade Wolfi semgrep to version 1.172.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream semgrep package and not the semgrep package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.