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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- SUSE-SU-2026:23636-1 Security update for mcphost SUSE / openSUSE Security Updates · Sep 29, 2026
- RHSA-2026:62527 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2026:62537 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Sep 22, 2026
- SUSE-SU-2026:23496-1 Security update for mcphost SUSE / openSUSE Security Updates · Sep 14, 2026
- openSUSE-SU-2026:21771-1 Security update for mcphost SUSE / openSUSE Security Updates · Sep 9, 2026
- RHSA-2026:54874 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Sep 9, 2026
- openSUSE-SU-2026:11670-1 mcphost-0.34.0-10.1 on GA media SUSE / openSUSE Security Updates · Sep 3, 2026
References
- https://github.com/mark3labs/mcp-go product
- https://github.com/mark3labs/mcp-go/pull/921 issue-tracking patch
- mcp-go v0.56.0 Release Notes release-notes
- VulnCheck Advisory: mcp-go before 0.56.0 Missing Host Header Validation Enables DNS Rebinding third-party-advisory