Live threats

All CVEs / Lfprojects

CVE-2026-34742Lfprojects Mcp Go Sdk

High 7.6 No auth needed

Priority
61
CVSS 4.0
7.6
EPSS
—
Auth required
No
Published
Apr 2, 2026
Updated
Jul 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1188
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mcp Go Sdk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/modelcontextprotocol/go-sdk < 1.4.0 1.4.0 go get github.com/modelcontextprotocol/go-sdk@v1.4.0
Go github.com/modelcontextprotocol/go-sdk < 1.4.0 1.4.0 go get github.com/modelcontextprotocol/go-sdk@v1.4.0

Per OSV / GitHub Advisories (GHSA-xw59-hvm2-8pj6, GO-2026-5771). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lfprojectsmcp_go_sdk< 1.4.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.