CVE-2026-81092
mcp-go before 0.56.0 Missing Host Header Validation Enables DNS Rebinding
- State
- Published
- Severity
- 7.6 High
- Published
- Aug 27, 2026
- Updated
- Aug 29, 2026
- Reserved
- Aug 26, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.6 High | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.8 Medium | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N | VulnCheck |
Weaknesses
- CWE-346 Origin Validation Error
Affected Products
| Product | Versions |
|---|---|
mcp-gomark3labs |
|
References
- https://github.com/mark3labs/mcp-goproduct
- https://github.com/mark3labs/mcp-go/pull/921issue-trackingpatch
- mcp-go v0.56.0 Release Notesrelease-notes
- VulnCheck Advisory: mcp-go before 0.56.0 Missing Host Header Validation Enables DNS Rebindingthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.