{"id":"CVE-2026-34742","published":"2026-04-02T18:32:34Z","modified":"2026-07-15T01:04:01Z","title":"Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost","vendor":"modelcontextprotocol","product":"go-sdk","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00705,"percentile":0.48936,"provenance":"source"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/pull/760","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34742","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454608","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":9.79},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"go-sdk","versions":["< 1.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-03T15:58:40.335119Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/modelcontextprotocol/go-sdk","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-xw59-hvm2-8pj6","GO-2026-5771"],"provenance":"source"}],"summary":{"text":"The Model Context Protocol Go SDK (modelcontextprotocol go-sdk) does not enable DNS rebinding protection by default for HTTP-based servers, a flaw present before version 1.4.0 that affects servers started with StreamableHTTPHandler or SSEHandler. An attacker operating a malicious website can exploit DNS rebinding to get past same-origin restrictions and reach such a server when it runs on localhost without authentication, which can let them invoke tools or access resources on the user's behalf, but only if the user visits that website while the server is running.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:41Z"},"euvd":{"id":"EUVD-2026-18503","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-modelcontextprotocol-go-sdk-cve-2026-27896","parents":[{"from":"CVE-2026-27896","to":"CVE-2026-34742","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/modelcontextprotocol/go-sdk","fromFixed":"1.3.1","toFixed":"1.4.0","daysApart":35},{"kind":"same-code","provenance":"machine","files":["mcp/streamable.go"],"commits":["https://github.com/modelcontextprotocol/go-sdk/commit/7b8d81c264074404abdf5aa16e2cf0c2d9c64cc0","https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-27896","published":"2026-02-26","fixed":"1.3.1","kev":false},{"cve":"CVE-2026-34742","published":"2026-04-02","fixed":"1.4.0","kev":false},{"cve":"CVE-2026-33252","published":"2026-03-23","fixed":"1.4.1","kev":false}],"package":"Go:github.com/modelcontextprotocol/go-sdk"}}