CVE-2026-34742
HIGH 7.6CVSS 4.0DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost
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.
- Published
- 2 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1188
- Also known as
- GHSA-xw59-hvm2-8pj6GO-2026-5771
- Sources
- NVDJSONOSV GHSA-xw59-hvm2-8pj6JSONOSV GO-2026-5771JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.6 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lfprojects | mcp_go_sdkcpe:2.3:a:lfprojects:mcp_go_sdk:*:*:*:*:*:*:*:* |
< 1.4.0 | 1.4.0 |
| OSV | Go | github.com/modelcontextprotocol/go-sdk | < 1.4.0 | 1.4.0 |
References
- https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d · Patch, WEB, FIX
- https://github.com/modelcontextprotocol/go-sdk/pull/760 · Issue Tracking, Patch, WEB, FIX
- https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0 · Release Notes, WEB
- https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2026:21772 · WEB
- https://access.redhat.com/security/cve/CVE-2026-34742 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2454608 · WEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34742 · ADVISORY
- https://github.com/modelcontextprotocol/go-sdk · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Apr 2026)