{"id":"CVE-2026-42559","aliases":["CVE-2026-42559","GHSA-89vp-x53w-74fx","GHSA-fvh2-gm75-j4j7","RUSTSEC-2026-0140","RUSTSEC-2026-0189"],"related":[],"kind":"vulnerability","state":"published","title":"RMCP: DNS rebinding vulnerability in rmcp Streamable HTTP server transport","summary":"RMCP is an official Rust SDK for the Model Context Protocol. Prior to version 1.4.0, the rmcp crate's Streamable HTTP server transport (crates/rmcp/src/transport/streamable_http_server/) did not validate the incoming Host header. This allowed a malicious public website, via a DNS rebinding attack, to send authenticated requests to an MCP server running on the victim's loopback or private-network interface. This vulnerability is fixed in 1.4.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RMCP is an official Rust SDK for the Model Context Protocol. Prior to version 1.4.0, the rmcp crate's Streamable HTTP server transport (crates/rmcp/src/transport/streamable_http_server/) did not validate the incoming Host header. This allowed a malicious public website, via a DNS rebinding attack, to send authenticated requests to an MCP server running on the victim's loopback or private-network interface. This vulnerability is fixed in 1.4.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nPrior to version 1.4.0, the `rmcp` crate's Streamable HTTP server transport (`crates/rmcp/src/transport/streamable_http_server/`) did not validate the incoming `Host` header. This allowed a malicious public website, via a DNS rebinding attack, to send authenticated requests to an MCP server running on the victim's loopback or private-network interface — violating the MCP specification's [transport security guidance](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#security-warning).\n\n## Impact\n\nAn attacker who convinces a victim to visit a malicious page can:\n\n- Enumerate and invoke any tool exposed by a locally-running rmcp-based MCP server.\n- Read resources, prompts, and any state accessible via the MCP session.\n- Trigger side effects (file writes, shell execution, API calls, etc.) limited only by what tools the victim's server exposes.\n\nBecause MCP servers frequently run with the user's privileges and expose developer tooling (filesystems, shells, browser control, language servers, etc.), the practical impact can extend to arbitrary code execution on the victim's machine.\n\n## Affected Versions\n\n`rmcp < 1.4.0` — all prior releases of the Streamable HTTP server transport. Non-HTTP transports (stdio, child-process) are not affected.\n\n## Patched Versions\n\n`rmcp >= 1.4.0` (current: 1.5.1).\n\n## Patch\n\nFixed in [PR #764](https://github.com/modelcontextprotocol/rust-sdk/pull/764) (commit `8e22aa2`), released as v1.4.0 on 2026-04-09:\n\n- `StreamableHttpServerConfig::allowed_hosts` now defaults to a loopback-only allowlist: `[\"localhost\", \"127.0.0.1\", \"::1\"]`.\n- All incoming HTTP requests pass through `validate_dns_rebinding_headers()`, which parses the `Host` header and returns HTTP 403 if the host is not on the allowlist.\n- Public deployments can configure an explicit allowlist via `StreamableHttpService::with_allowed_hosts(...)`, or opt out (not recommended without an upstream reverse proxy that validates `Host`) via `disable_allowed_hosts()`.\n\nThis fix validates the `Host` header only. `Origin` header validation is tracked as a defense-in-depth follow-up in [#822](https://github.com/modelcontextprotocol/rust-sdk/issues/822) and is not required to block the DNS rebinding attack described here — the browser cannot forge the Host header sent to the rebound server.\n\n## Workarounds for Unpatched Users\n\n- Upgrade to `rmcp >= 1.4.0`.\n- If upgrade is not possible, place the MCP server behind a reverse proxy (e.g. nginx, Caddy) configured to reject requests whose `Host` header is not one of your expected hostnames.\n- Do not bind the MCP server to `0.0.0.0` without such a proxy.\n\n## Resources\n\n- PR: https://github.com/modelcontextprotocol/rust-sdk/pull/764\n- Issue: https://github.com/modelcontextprotocol/rust-sdk/issues/815\n- Follow-up (Origin validation): https://github.com/modelcontextprotocol/rust-sdk/issues/822\n- MCP transport security guidance: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#security-warning\n\n## Related advisories (same class of vulnerability)\n\n- TypeScript SDK: GHSA-w48q-cv73-mx4w\n- Python SDK: GHSA-9h52-p55h-vw2f\n- Go SDK: GHSA-xw59-hvm2-8pj6\n- Java SDK: GHSA-8jxr-pr72-r468","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\ndynoxide's MCP HTTP transport was vulnerable to DNS rebinding via its transitive `rmcp` dependency, plus a related cross-origin CSRF gap. A malicious web page could make the user's browser send requests to a local `dynoxide mcp --http` or `dynoxide serve --mcp` server with a non-loopback `Host` header, which the server would then process. Affects 0.9.3 to 0.9.12. The stdio transport (`dynoxide mcp` without `--http`, which is the default) is not affected.\n\n## Impact\n\nIf a user is running `dynoxide mcp --http` (or `dynoxide serve --mcp`) on their machine and then visits a malicious web page, the attacker's JavaScript can call any MCP tool exposed by the running dynoxide instance.\n\nReachable tools include reads (`get_item`, `query`, `scan`, `batch_get_item`, `describe_table`, `list_tables`) and writes (`put_item`, `update_item`, `delete_item`, `create_table`, `batch_write_item`).\n\nAny data in tables that the local dynoxide instance has access to can be read, modified, or destroyed.\n\n## Patches\n\ndynoxide 0.9.13 closes both the named CVE and a related cross-origin CSRF gap:\n\n1. **DNS rebinding (the named CVE).** `rmcp` is upgraded from 1.1.1 to 1.6.0. rmcp 1.4+ ships a default Host-header allowlist (`[\"localhost\", \"127.0.0.1\", \"::1\"]`) which rejects requests carrying any other Host header with a 403.\n\n2. **Defence in depth.** Explicit `allowed_hosts` and `allowed_origins` lists are now set on `StreamableHttpServerConfig` directly. The Host allowlist protects against a future rmcp default flip. The Origin allowlist closes a related cross-origin CSRF gap that the Host check alone does not address: a malicious page could `fetch` the loopback endpoint with `mode: 'no-cors'`, the Host header would match (it's the literal loopback address the browser is connecting to), but the Origin header would otherwise have been unchecked.\n\nNative MCP clients that don't send an Origin header (Claude Code, Cursor, the dynoxide CLI) are unaffected by the Origin check and continue to work.\n\n## Workarounds\n\n- Upgrade to dynoxide 0.9.13.\n- If upgrade is not immediately possible: do not run the MCP HTTP transport. Run `dynoxide mcp` (stdio, the default) instead of `dynoxide mcp --http`, and don't pass `--mcp` to `dynoxide serve`.\n\n## Resources\n\n- Upstream rmcp advisory: [GHSA-89vp-x53w-74fx](https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-89vp-x53w-74fx)\n- Upstream CVE: [CVE-2026-42559](https://www.cve.org/CVERecord?id=CVE-2026-42559)\n- dynoxide release: [v0.9.13](https://github.com/nubo-db/dynoxide/releases/tag/v0.9.13)\n- MCP transport security guidance: <https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#security-warning>\n\n## Credits\n\nVulnerability identified via GitHub Dependabot alert on the transitive rmcp dependency.","format":"markdown","source":"ghsa"},{"lang":"en","text":"dynoxide's MCP HTTP transport was vulnerable to DNS rebinding via its transitive `rmcp` dependency, plus a related cross-origin CSRF gap.\n\nA malicious web page could make the user's browser send requests to a local `dynoxide mcp --http` or `dynoxide serve --mcp` server with a non-loopback `Host` header, which the server would then process. The Host check alone did not close a related cross-origin CSRF vector: a page could `fetch` the loopback endpoint with `mode: 'no-cors'`, and the Host header would match while the Origin header went unchecked.\n\nAffected MCP write tools include `put_item`, `update_item`, `delete_item`, `create_table`, and `batch_write_item`.\n\nThe stdio transport (`dynoxide mcp` without `--http`) is not affected.\n\n## Patches\n\ndynoxide 0.9.13 closes both vectors:\n\n- Upgrades `rmcp` from 1.1.1 to 1.6.0 (which ships a default Host-header allowlist).\n- Sets explicit `allowed_hosts` and `allowed_origins` on `StreamableHttpServerConfig`.","format":"markdown","source":"rustsec"},{"lang":"en","text":"Prior to version 1.4.0, the `rmcp` crate's Streamable HTTP server transport did\nnot validate the incoming `Host` header.\n\nThis allowed a malicious public website, via a DNS rebinding attack, to send\nrequests to an MCP server running on the victim's loopback or private-network\ninterface.\n\nAn attacker who convinced a victim to visit a malicious page could enumerate and\ninvoke tools exposed by a locally running rmcp-based MCP server, read resources\nand prompts, and trigger side effects limited by the tools exposed by that\nserver.\n\nNon-HTTP transports such as stdio and child-process transports are not affected.\n\n## Patches\n\nThe issue was fixed in `rmcp` 1.4.0 by adding default loopback-only host\nallowlist validation for the Streamable HTTP server transport. Incoming HTTP\nrequests now validate the `Host` header and return HTTP 403 when the host is not\nallowed.\n\nUsers should upgrade to `rmcp >= 1.4.0`.\n\n## Workarounds\n\nIf upgrading is not possible, place the MCP server behind a reverse proxy\nconfigured to reject requests whose `Host` header is not one of the expected\nhostnames. Do not bind the MCP server to `0.0.0.0` without such validation.","format":"markdown","source":"rustsec"},{"lang":"es","text":"RMCP es un SDK oficial de Rust para el Protocolo de Contexto del Modelo. Antes de la versión 1.4.0, el transporte de servidor HTTP Streamable del crate rmcp (crates/rmcp/src/transport/streamable_http_server/) no validaba el encabezado Host entrante. Esto permitía que un sitio web público malicioso, a través de un ataque de DNS rebinding, enviara solicitudes autenticadas a un servidor MCP ejecutándose en la interfaz de loopback o de red privada de la víctima. Esta vulnerabilidad está corregida en la versión 1.4.0.","source":"nvd"}],"published":"2026-04-29T12:00:00.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-346","CWE-350","CWE-352"],"affected":[{"ranges":[{"version":"< 1.4.0","status":"affected"}],"vendor":"modelcontextprotocol","product":"rust-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"crates.io","package":"rmcp","purl":"pkg:cargo/rmcp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.3","status":"affected","fixed":"0.9.13"}],"ecosystem":"crates.io","package":"dynoxide-rs","purl":"pkg:cargo/dynoxide-rs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.3","status":"affected","fixed":"0.9.13"}],"ecosystem":"npm","package":"dynoxide","purl":"pkg:npm/dynoxide","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.3","status":"affected","fixed":"0.9.13"}],"ecosystem":"crates.io","package":"dynoxide-rs","purl":"pkg:cargo/dynoxide-rs","source":"rustsec"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.4.0"}],"ecosystem":"crates.io","package":"rmcp","purl":"pkg:cargo/rmcp","source":"rustsec"}],"references":[{"url":"https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-89vp-x53w-74fx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/issues/815","tags":["report","web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/issues/822","tags":["report","web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/pull/764","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/commit/8e22aa2de28df5a285eed87c11cd89bf15fa90d3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nubo-db/dynoxide/security/advisories/GHSA-fvh2-gm75-j4j7","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42559","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#security-warning","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0140.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/nubo-db/dynoxide","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nubo-db/dynoxide/releases/tag/v0.9.13","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/dynoxide-rs","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/nubo-db/dynoxide/commit/10292083fd16fe7116e9089ffa189f4f4f071e0f","tags":["web"],"sources":["rustsec"]},{"url":"https://crates.io/crates/rmcp","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0189.html","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-14T16:00:22.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42559","url":"https://www.cve.org/CVERecord?id=CVE-2026-42559","licence":"CVE Terms of Use","modified":"2026-05-14T16:00:33.149Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89vp-x53w-74fx","url":"https://github.com/advisories/GHSA-89vp-x53w-74fx","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.771Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fvh2-gm75-j4j7","url":"https://github.com/advisories/GHSA-fvh2-gm75-j4j7","licence":"CC-BY-4.0","modified":"2026-06-29T13:14:15.290Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0140","url":"https://rustsec.org/advisories/RUSTSEC-2026-0140.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:08.330Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0189","url":"https://rustsec.org/advisories/RUSTSEC-2026-0189.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:14.804Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42559","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42559","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.710Z","epss":{"score":0.00269,"percentile":0.20433,"date":"2026-12-01T12:00:22.000Z"}}