Description
The MCP Python SDK, called `mcp` on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to version 1.23.0, tThe Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication using FastMCP with streamable HTTP or SSE transport, and has not configured TransportSecuritySettings, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances. Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport. This vulnerability is fixed in 1.23.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| modelcontextprotocol | python-sdk | < 1.23.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui-compat | 0.6.40-r1 | — |
| Wolfi rolling | semgrep +1 | 1.145.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mcp | < 1.23.0 | 1.23.0 | GHSA-9h52-p55h-vw2f |
Advisories 1
- WID-SEC-2026-0120 Red Hat Satellite (satellite/foreman-mcp-server-rhel9): Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 3, 2026