Skip to main content
VulnerabilityPublished Updated

CVE-2026-34742: modelcontextprotocol go-sdk · Insecure Default Initialization of Resource

Affects modelcontextprotocol go-sdkSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.6 High : upgrade to 1.4.0 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
7.6High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
modelcontextprotocolgo-sdkAffected
  • <1.4.0
Fixed in
  • 1.4.0
Gogithub.com/modelcontextprotocol/go-sdkpkg:golang/github.com/modelcontextprotocol/go-sdkOther threatsAffected
  • <1.4.0
Fixed in
  • 1.4.0

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

Community reviews

Loading reviews…