Skip to content
Heist/ feed
Back to feed
High

Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-34742
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:16 UTC · Revision 1

Source evidence

Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost

core-osv · Original source

Published 2 Apr 2026, 18:32 UTC

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.

osv:CVE-2026-34742
Complete source record
{
  "id": "1c126cbb89f9c09bdd476cce6e166fac5b3f27e397233561ae6c9e3417af3a20",
  "url": "https://osv.dev/vulnerability/CVE-2026-34742",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2026-34742",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-34742",
      "aliases": [
        "CVE-2026-34742",
        "GHSA-xw59-hvm2-8pj6",
        "GO-2026-5771"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/modelcontextprotocol/go-sdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c9317fb5b75328ca2faeaf8ea0e23a53c37de49f"
                },
                {
                  "fixed": "67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lfprojects:mcp_go_sdk:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.4.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c9317fb5b75328ca2faeaf8ea0e23a53c37de49f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.4.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.0-pre.1",
            "v1.3.0",
            "v1.2.0-pre.2",
            "v1.2.0",
            "v1.2.0-pre.1",
            "v1.1.0-pre.2",
            "v1.1.0",
            "v1.1.0-pre.1",
            "v1.0.0",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0",
            "v0.5.0",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34742.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.933813184Z",
      "provider": "osv",
      "references": [
        "https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0",
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json",
        "https://access.redhat.com/errata/RHSA-2026:21772",
        "https://access.redhat.com/security/cve/CVE-2026-34742",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34742.json",
        "https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-34742",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2454608",
        "https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d",
        "https://github.com/modelcontextprotocol/go-sdk/pull/760"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1188"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34742.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-34742",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489026,
  "published_at": "2026-04-02T18:32:34.781+00:00"
}