{"id":"CVE-2026-34742","aliases":["CVE-2026-34742","GHSA-xw59-hvm2-8pj6","GO-2026-5771"],"related":[],"kind":"vulnerability","state":"published","title":"Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nNote 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.\n\nServers 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost in github.com/modelcontextprotocol/go-sdk","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-01T21:09:09.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-1188"],"affected":[{"ranges":[{"version":"< 1.4.0","status":"affected"}],"vendor":"modelcontextprotocol","product":"go-sdk","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1779829736","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.28","package":"devspaces/udi-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3.28::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"migration-toolkit-virtualization/mtv-cli-download-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-api-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-cli-download-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-controller-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-operator-bundle","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Lightspeed","package":"openshift-lightspeed/openshift-mcp-server-rhel9","cpe":"cpe:/a:redhat:openshift_lightspeed","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/kn-client-kn-rhel9","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/kn-plugin-func-func-util-rhel9","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-gen-ai-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"go"},{"ranges":[{"status":"affected","fixed":"1.4.0"}],"vendor":"lfprojects","product":"mcp_go_sdk","cpe":"cpe:2.3:a:lfprojects:mcp_go_sdk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/pull/760","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34742","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454608","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json","tags":["web","x-sadp-csaf-vex"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34742","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/modelcontextprotocol/go-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-03T15:58:40.335Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34742","url":"https://www.cve.org/CVERecord?id=CVE-2026-34742","licence":"CVE Terms of Use","modified":"2026-07-15T01:04:01.603Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xw59-hvm2-8pj6","url":"https://github.com/advisories/GHSA-xw59-hvm2-8pj6","licence":"CC-BY-4.0","modified":"2026-07-21T15:15:52.149Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5771","url":"https://pkg.go.dev/vuln/GO-2026-5771","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:17.144Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34742","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34742","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:17.839Z","epss":{"score":0.0053,"percentile":0.46245,"date":"2026-12-01T12:00:22.000Z"}}