Vulnerability · Published Apr 2, 2026 · Assigned by GitHub_M
CVE-2026-34742Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost
High 8.0
In plain English
A high-severity security flaw in go-sdk from modelcontextprotocol. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
The Go MCP SDK used Go's standard encoding/json. Prior to version 1.4.0, the Model Context Protocol (MCP) Go 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 with StreamableHTTPHandler or SSEHandler, 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. This issue has been patched in version 1.4.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/modelcontextprotocol/go-sdk | 1.4.0 | GHSA-xw59-hvm2-8pj6 |
| Go | github.com/modelcontextprotocol/go-sdk | 1.4.0 | GO-2026-5771 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| modelcontextprotocol | go-sdk | < 1.4.0 |
Weakness: CWE-1188 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6 x_refsource_CONFIRM
- https://github.com/modelcontextprotocol/go-sdk/pull/760 x_refsource_MISC
- https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d x_refsource_MISC
- https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-34742 vdb-entry, x_refsource_REDHAT
- RHBZ#2454608 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:21772 vendor-advisory, x_refsource_REDHAT