# CVE-2026-34742: Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-04-01T21:09:09.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-xw59-hvm2-8pj6, GO-2026-5771
- Weaknesses: CWE-1188
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- modelcontextprotocol go-sdk: < 1.4.0
- devspaces/udi-rhel9: no versions given (not affected: from 1779829736 before *)
- migration-toolkit-virtualization/mtv-cli-download-rhel9: no versions given
- mtv-candidate/mtv-api-rhel9: no versions given
- mtv-candidate/mtv-cli-download-rhel9: no versions given
- mtv-candidate/mtv-controller-rhel9: no versions given
- mtv-candidate/mtv-operator-bundle: no versions given
- openshift-lightspeed/openshift-mcp-server-rhel9: no versions given
- openshift-serverless-1/kn-client-kn-rhel9: no versions given
- openshift-serverless-1/kn-plugin-func-func-util-rhel9: no versions given
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given
- github.com/modelcontextprotocol/go-sdk (Go): before 1.4.0
- lfprojects mcp_go_sdk: before 1.4.0

## Every score

- GitHub_M: CVSS:4.0 7.6 High `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`
- redhat-SADP: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6> (advisory, vendor-advisory, web)
- <https://github.com/modelcontextprotocol/go-sdk/pull/760> (fix, issue-tracking, patch, web)
- <https://github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d> (fix, patch, web)
- <https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-34742> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2454608> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:21772> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34742> (advisory)
- <https://github.com/modelcontextprotocol/go-sdk> (package)

## Sources

- CVE List: [CVE-2026-34742](https://www.cve.org/CVERecord?id=CVE-2026-34742), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-xw59-hvm2-8pj6](https://github.com/advisories/GHSA-xw59-hvm2-8pj6), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5771](https://pkg.go.dev/vuln/GO-2026-5771), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-34742](https://nvd.nist.gov/vuln/detail/CVE-2026-34742), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34742 · Whole record: https://cve.day/CVE-2026-34742.json · Rebuilt by cve.day 2026-11-25T22:59:17.839Z
