CVE-2026-34742: modelcontextprotocol go-sdk · Insecure Default Initialization of Resource
Affects modelcontextprotocol go-sdkSource CVE Database V5
Not known to be exploited · CVSS 7.6 High : upgrade to 1.4.0 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade go-sdk and github.com/modelcontextprotocol/go-sdk to 1.4.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| modelcontextprotocolgo-sdk | Affected
| Fixed in
|
Gogithub.com/modelcontextprotocol/go-sdkpkg:golang/github.com/modelcontextprotocol/go-sdkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in modelcontextprotocol go-sdk version 1.4.0, which enables DNS rebinding protection by default. Users should upgrade to version 1.4.0 or later to remediate this vulnerability. No other mitigation steps are indicated by the vendor advisory.
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.
References
- github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-xw59-hvm2-8pj6 (opens in a new tab)
- github.com/modelcontextprotocol/go-sdk/pull/760 (opens in a new tab)
- github.com/modelcontextprotocol/go-sdk/commit/67bd3f2e2b53ce11a16db8d976cdb8ff1e986b6d (opens in a new tab)
- github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-34742 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2454608 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34742.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:21772 (opens in a new tab)