CVE-2026-34742
JSON

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 packageVersionsReported by
modelcontextprotocol go-sdk< 1.4.0CVE List
devspaces/udi-rhel9Not specified
Not affected: from 1779829736 before *
CVE List
migration-toolkit-virtualization/mtv-cli-download-rhel9Not specifiedCVE List
mtv-candidate/mtv-api-rhel9Not specifiedCVE List
mtv-candidate/mtv-cli-download-rhel9Not specifiedCVE List
mtv-candidate/mtv-controller-rhel9Not specifiedCVE List
mtv-candidate/mtv-operator-bundleNot specifiedCVE List
openshift-lightspeed/openshift-mcp-server-rhel9Not specifiedCVE List
openshift-serverless-1/kn-client-kn-rhel9Not specifiedCVE List
openshift-serverless-1/kn-plugin-func-func-util-rhel9Not specifiedCVE List
rhoai/odh-mod-arch-gen-ai-rhel9Not specifiedCVE List
github.com/modelcontextprotocol/go-sdk (Go)before 1.4.0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.6high CVSS:4.0CVSS: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-SADP8.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-1188

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

Sources

SourceRecordLicence
CVE ListCVE-2026-34742 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-xw59-hvm2-8pj6 changed 2026-07-21CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5771 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-34742 changed 2026-07-24Public domain