{"answers":{"affected":"3 open source packages ship an affected version, including github.com/modelcontextprotocol/go-sdk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34742 in the wild and no public exploit code.","fix":"Upgrade github.com/modelcontextprotocol/go-sdk to 1.4.0 or later.","what":"CVE-2026-34742 is a high-severity server-side request forgery vulnerability in modelcontextprotocol go-sdk, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-34742 and fix it if it is affected.\n\nWhat it is: CVE-2026-34742 is a high-severity server-side request forgery vulnerability in modelcontextprotocol go-sdk, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-34742 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/modelcontextprotocol/go-sdk (Go): affected all versions; fixed in 1.4.0\n- github.com/modelcontextprotocol/go-sdk (Go): affected all versions; fixed in 1.4.0\n- github.com/modelcontextprotocol/go-sdk (Go): affected all versions; fixed in 1.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34742/ (Markdown: https://insights.sbomify.com/CVE-2026-34742/index.md)","id":"CVE-2026-34742","markdown":"https://insights.sbomify.com/CVE-2026-34742/index.md","name":"CVE-2026-34742","record":{"aliases":["CLEANSTART-2026-BU71031","CLEANSTART-2026-GU11984","GHSA-xw59-hvm2-8pj6","GO-2026-5771","MINI-35w4-5mqf-x5vp","MINI-p8vf-7524-pc7x"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Go MCP SDK","requires_auth":"none","summary":"Attackers can bypass same-origin policy via DNS rebinding to interact with local MCP servers, potentially invoking tools or accessing resources.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mcp_go_sdk","vendor":"lfprojects"}],"cvss":{"score":7.6,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Model Context Protocol Go SDK: DNS Rebinding Protection Disabled by Default for Servers Running on Localhost","id":"CVE-2026-34742","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"XZ Utils: Buffer overflow in lzma_index_append()","id":"CVE-2026-34743"},"packages":[{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/modelcontextprotocol/go-sdk","purl":null,"source":"GHSA-xw59-hvm2-8pj6"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"GHSA-xw59-hvm2-8pj6"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"GO-2026-5771"}],"prev":{"headline":"Combodo iTop: Authentication bypass in exec.php allows PHP file execution","id":"CVE-2026-34741"},"products":["go-sdk"],"published":"2026-04-02","related":[{"cvss_score":7.1,"headline":"MCP Go SDK Allows Cross-Site Tool Execution for HTTP Servers without Authorizatrion","id":"CVE-2026-33252","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":7,"headline":"MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity","id":"CVE-2026-27896","kev_date_added":null,"published":"2026-02-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["modelcontextprotocol"]},"summary":"Attackers can bypass same-origin policy via DNS rebinding to interact with local MCP servers, potentially invoking tools or accessing resources.","url":"https://insights.sbomify.com/CVE-2026-34742/"}