CVE-2026-34742
published high CVSS 4.0 · 7.6Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| modelcontextprotocol | — | go-sdk< 1.4.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | devspaces/udi-rhel9Red Hat OpenShift Dev Spaces 3.28 · 1779829736 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | migration-toolkit-virtualization/mtv-cli-download-rhel9Migration Toolkit for Virtualization | Affected | Not stated | redhat-SADP |
| Red Hat | — | mtv-candidate/mtv-api-rhel9Migration Toolkit for Virtualization | Affected | Not stated | redhat-SADP |
| Red Hat | — | mtv-candidate/mtv-cli-download-rhel9Migration Toolkit for Virtualization | Affected | Not stated | redhat-SADP |
| Red Hat | — | mtv-candidate/mtv-controller-rhel9Migration Toolkit for Virtualization | Affected | Not stated | redhat-SADP |
| Red Hat | — | mtv-candidate/mtv-operator-bundleMigration Toolkit for Virtualization | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed/openshift-mcp-server-rhel9OpenShift Lightspeed | Unaffected | Not required | redhat-SADP |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift-serverless-1/kn-client-kn-rhel9OpenShift Serverless | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-serverless-1/kn-plugin-func-func-util-rhel9OpenShift Serverless | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-mod-arch-gen-ai-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in the Model Context Protocol (MCP) Go SDK. When an HTTP-based MCP server is run on localhost without authentication, a malicious website can exploit a DNS rebinding vulnerability. This allows the attacker to bypass same-origin policy restrictions and send requests to the local MCP server. Consequently, an attacker could invoke tools or access resources exposed by the MCP server on behalf of the user.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.0 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| modelcontextprotocol | go-sdk | < 1.4.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenShift Dev Spaces 3.28 | 1779829736 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat-SADP · adp |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat-SADP · adp |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat-SADP · adp |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat-SADP · adp |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: unaffected | redhat-SADP · adp |
| Red Hat | OpenShift Serverless | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Serverless | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-1188 CWE-1188: Insecure Default Initialization of Resource
- CWE-1188 Initialization of a Resource with an Insecure Default
References
8- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/security/cve/CVE-2026-34742
- RHBZ#2454608 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
- https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0
- https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json
Provider assertions
3GitHub_M · cna
Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost
redhat-SADP · adp
github.com/modelcontextprotocol/go-sdk: Model Context Protocol (MCP) Go SDK: DNS rebinding vulnerability allows unauthorized access
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 089124fd8384f58770dc0a84c7ee881de9d4a0ad0bc57343959560f2e185f8e9
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record