Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-81092 EUVD-2026-67147GHSA-8g5x-gj7x-mxgm

mcp-go before 0.56.0 Missing Host Header Validation Enables DNS Rebinding

Published Aug 27, 2026 · Updated Aug 29, 2026 · Assigned by VulnCheck

Description

mcp-go accepted requests on its HTTP transports without checking the Host header. StreamableHTTPServer.ServeHTTP in server/streamable_http.go and SSEServer.ServeHTTP in server/sse.go served any request arriving over a loopback connection regardless of the host it named, and the SSE transport's cross-origin default allowed any origin. A page in a browser could therefore point a name it controlled at the loopback address and reach a server listening there, invoking tools and reading resources that the server exposed on the assumption that only local software could connect. No release before 0.56.0 validated the header on either transport; 0.56.0 adds server/http_localhost.go, which rejects a loopback-bound request carrying a host that is not a loopback name, and wires it into both transports.

Affected products

VendorProductAffectedFixed
mark3labs mcp-go < 0.56.0 0.56.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.

ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 tempo2.10 2.10.8-0.2.hum1 RHSA-2026:62527
Red Hat Hardened Images 1 tempo3.0 3.0.3-0.1.hum1 RHSA-2026:62537, RHSA-2026:54874
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 mcphost 0.34.0-160000.4.1 SUSE-SU-2026:23636-1
SLES 16.0 mcphost 0.34.0-160000.4.1 SUSE-SU-2026:23636-1
SLE Micro 6.2 mcphost 0.34.0-160000.4.1 SUSE-SU-2026:23496-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mcphost 0.34.0-10.1 openSUSE-SU-2026:11670-1
openSUSE Leap 16.0 mcphost 0.34.0-160000.4.1 openSUSE-SU-2026:21771-1

Advisories 7

References