7.6high
Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost
- Severity
- 7.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xw59-hvm2-8pj6GO-2026-5771
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
| Product or package | Versions | Reported by |
|---|---|---|
| modelcontextprotocol go-sdk | < 1.4.0 | CVE List |
| devspaces/udi-rhel9 | Not specified Not affected: from 1779829736 before * | CVE List |
| migration-toolkit-virtualization/mtv-cli-download-rhel9 | Not specified | CVE List |
| mtv-candidate/mtv-api-rhel9 | Not specified | CVE List |
| mtv-candidate/mtv-cli-download-rhel9 | Not specified | CVE List |
| mtv-candidate/mtv-controller-rhel9 | Not specified | CVE List |
| mtv-candidate/mtv-operator-bundle | Not specified | CVE List |
| openshift-lightspeed/openshift-mcp-server-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-client-kn-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-plugin-func-func-util-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified | CVE List |
| github.com/modelcontextprotocol/go-sdk (Go) | before 1.4.0 | GitHub Advisory Database, Go Vulnerability Database |
| lfprojects mcp_go_sdk | before 1.4.0 | NVD |
All scores
| GitHub_M | 7.6high 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 |
| redhat-SADP | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | high 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 | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport.
Servers created via StreamableHTTPHandler or SSEHandler now have this protection enabled by default when binding to localhost. Users are advised to update to version 1.4.0 to receive this automatic protection.
Go Vulnerability Database
DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost in github.com/modelcontextprotocol/go-sdk
NVD (es)
El SDK Go de MCP utilizaba el encoding/json estándar de Go. Antes de la versión 1.4.0, el SDK Go del Protocolo de Contexto del Modelo (MCP) no habilita la protección contra el rebinding de DNS por defecto para servidores basados en HTTP. Cuando un servidor MCP basado en HTTP se ejecuta en localhost sin autenticación con StreamableHTTPHandler o SSEHandler, un sitio web malicioso podría explotar el rebinding de DNS para eludir las restricciones de la política de mismo origen y enviar solicitudes al servidor MCP local. Esto podría permitir a un atacante invocar herramientas o acceder a recursos expuestos por el servidor MCP en nombre del usuario en esas circunstancias limitadas. Este problema ha sido parcheado en la versión 1.4.0.
References
| https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6 | advisory, vendor-advisory, web | |
| https://github.com/modelcontextprotocol/go-sdk/pull/760 | fix, issue-tracking, patch, web | |
| https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d | fix, patch, web | |
| https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0 | release-notes, web | |
| https://access.redhat.com/security/cve/CVE-2026-34742 | vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2454608 | issue-tracking, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json | web | |
| https://access.redhat.com/errata/RHSA-2026:21772 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-34742 | advisory | |
| https://github.com/modelcontextprotocol/go-sdk | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34742 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xw59-hvm2-8pj6 changed 2026-07-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5771 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-34742 changed 2026-07-24 | Public domain |