Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. mcp
  4. ›
  5. CVE-2026-63118

CVE-2026-63118: MCP Ruby SDK: Streamable HTTP transport lacks DNS-rebinding (Host/Origin) protection

July 30, 2026

MCP::Server::Transports::StreamableHTTPTransport (the Rack-mountable Streamable HTTP transport in the mcp gem) processes every incoming JSON-RPC request without ever inspecting the HTTP Host or Origin request headers. There is no AllowedHosts/AllowedOrigins allowlist and no DNS-rebinding guard anywhere in the transport. A local MCP server that binds a loopback or LAN HTTP port is therefore reachable by any web origin a victim’s browser visits, via a DNS-rebinding attack: a malicious page rebinds its own hostname to 127.0.0.1, then drives the local MCP server cross-origin to enumerate and invoke its tools and exfiltrate their output. This is the standard browser-driven local-service attack that the MCP Streamable HTTP guidance exists to prevent.

References

  • github.com/advisories/GHSA-rjr6-rcgv-9m7m
  • github.com/modelcontextprotocol/ruby-sdk/commit/ba543083a7594e7892b29464b89091816446ff7a
  • github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.23.0
  • github.com/modelcontextprotocol/ruby-sdk/security/advisories/GHSA-rjr6-rcgv-9m7m
  • nvd.nist.gov/vuln/detail/CVE-2026-63118

Code Behaviors & Features

Detect and mitigate CVE-2026-63118 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.23.0

Fixed versions

  • 0.23.0

Solution

Upgrade to version 0.23.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error
  • CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action

Source file

gem/mcp/CVE-2026-63118.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 31 Jul 2026 12:18:23 +0000.