CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-63118

CVE-2026-63118: DNS-Rebinding and Cross-Origin Request Execution in Model Context Protocol (MCP) Ruby SDK

Alon Barad
Alon Barad
Software Engineer

Jul 31, 2026·6 min read·73 visits

Executive Summary (TL;DR)

A DNS-rebinding flaw in the MCP Ruby SDK (< 0.23.0) allows malicious sites to bypass the browser Same-Origin Policy and run arbitrary local tools.

A critical vulnerability (CVE-2026-63118) in the Model Context Protocol (MCP) Ruby SDK allows attackers to execute arbitrary JSON-RPC commands and exfiltrate sensitive local data from an MCP server bound to the local loopback interface. This is achieved through DNS-rebinding and cross-origin request execution due to missing validation of the HTTP Host and Origin headers in the StreamableHTTPTransport component.

Vulnerability Overview

The Model Context Protocol (MCP) Ruby SDK provides infrastructure for building local and remote AI assistant tools. A core component of this library is the StreamableHTTPTransport class, which implements a Rack-compatible HTTP server designed to handle incoming JSON-RPC requests. This transport layer allows client applications to communicate with local MCP servers, initiating sessions and invoking functional components.

Prior to version 0.23.0, the StreamableHTTPTransport component lacked host and origin verification routines on incoming HTTP requests. Because developers typically deploy MCP servers locally on loopback interfaces, the lack of host and origin restrictions exposed the server to severe security risks. Specifically, malicious web applications running in a user's browser could interact directly with the locally bound server.

This structural flaw is classified under CWE-346 (Origin Validation Error) and CWE-350 (Reliance on Reverse DNS Resolution for a Security-Critical Action). It allows attackers to orchestrate DNS-rebinding attacks or direct cross-origin request execution. The vulnerability is tracked as CVE-2026-63118 and carries a CVSS v4 base score of 6.9, reflecting high subsequent confidentiality impact on the host system.

Root Cause Analysis

The root cause of CVE-2026-63118 lies in the unconditional acceptance of HTTP traffic by the StreamableHTTPTransport server. When a web server processes requests, it typically relies on the web browser's Same-Origin Policy (SOP) to isolate cross-origin domains. However, SOP relies on the assumption that a domain name resolves consistently to a single IP address during a session. This assumption is invalidated by DNS rebinding.

In a DNS-rebinding scenario, an attacker configures a custom nameserver for a domain they control. When the victim accesses this domain, the nameserver responds with the attacker's actual server IP but sets a very short Time-To-Live (TTL). Once the browser caches or expires the DNS record, the attacker's nameserver points subsequent resolutions of the exact same domain to the loopback address 127.0.0.1.

Because the browser associates the domain with the previous origin, it allows scripts to issue requests to the rebound address, thinking it is still contacting the attacker's server. Because the vulnerable SDK did not inspect the incoming Host header (which still contained the attacker's domain) or the Origin header, the local MCP server executed the incoming JSON-RPC commands and returned the results to the browser, bypassing SOP.

Code Analysis

The vulnerability was addressed in commit ba543083a7594e7892b29464b89091816446ff7a by implementing a validation routine on every request handled by StreamableHTTPTransport. This validation is integrated directly into the handle_request method, intercepting execution before any HTTP methods are parsed.

Below is the comparison of the request handling logic before and after the patch:

# Vulnerable implementation (prior to v0.23.0)
def handle_request(request)
  case request.env["REQUEST_METHOD"]
  when "POST"
    handle_post(request)
  # ... processed unconditionally
  end
end
# Patched implementation (v0.23.0)
def handle_request(request)
  rebinding_error = validate_dns_rebinding(request)
  return rebinding_error if rebinding_error
 
  case request.env["REQUEST_METHOD"]
  # ... normal execution after validation passes
  end
end

The validate_dns_rebinding method relies on two subsidiary checks: validate_host and validate_origin. If @dns_rebinding_protection is enabled, the server validates that the HTTP_HOST matches an allowed host (by default, 127.0.0.1, ::1, or localhost) and that the HTTP_ORIGIN matches the current host or an allowed origin list. If either check fails, the server responds with a 403 Forbidden status and an INVALID_REQUEST JSON-RPC error. This patch is highly complete because it applies strict secure-by-default behavior while preserving compatibility for complex reverse proxy setups.

Exploitation

Exploitation of CVE-2026-63118 relies on user interaction and a targeted DNS infrastructure. The attacker must first lure a victim who is currently running a local MCP server to visit a malicious website under the attacker's control. The interaction flows according to the following communication sequence:

Once the browser is directed to 127.0.0.1, the malicious JavaScript payload issues a POST request to initialize an MCP session. The request does not trigger CORS warnings because the browser believes it is communicating with the original evil.attacker.com origin:

POST / HTTP/1.1
Host: evil.attacker.com:9292
Content-Type: application/json
 
{"jsonrpc": "2.0", "method": "initialize", "id": "init_id", "params": {"protocolVersion": "2025-11-25", "capabilities": {}, "clientInfo": {"name": "evil-client", "version": "1.0"}}}

After retrieving the session identifier, the script invokes sensitive tools registered on the local server, such as system command runners or filesystem tools. The response containing secret tokens or system command outputs is then returned to the JavaScript execution context and transmitted back to the attacker.

Impact Assessment

The impact of successful exploitation is severe and depends largely on the level of system access granted to the local MCP server. Since MCP is designed to allow local AI clients to run local operations, these servers are frequently configured with highly privileged tools. Common capabilities include direct terminal command execution, filesystem write capabilities, and localized database access.

An attacker who successfully exploits CVE-2026-63118 gains full access to these local APIs. They can execute system utilities, read sensitive SSH keys, access active cloud provider credentials, or install persistent backdoors on the host machine. Because the attacker operates from within the victim's browser session, the local firewall and network perimeter controls are completely bypassed.

According to the CVSS v4 vector, the vulnerability is rated as 6.9 (Medium). Although the vulnerability itself does not guarantee immediate system compromise, the subsequent system confidentiality impact is high (SC:H). The attack requirements are present (AT:P) because the attacker must host a functional DNS-rebinding infrastructure, but the user interaction is minimal (UI:A), requiring only a single website visit.

Remediation

To resolve CVE-2026-63118, developers must upgrade the mcp gem to version 0.23.0 or higher. This release integrates host and origin checking by default, preventing unauthenticated clients from invoking API functions. The gem can be updated by declaring gem 'mcp', '>= 0.23.0' in the Gemfile and running bundle update mcp.

If the server is deployed behind an upstream reverse proxy that already filters the Host and Origin headers, protection can be configured as follows:

transport = MCP::Server::Transports::StreamableHTTPTransport.new(
  server,
  allowed_hosts: ["mcp.example.com"],
  allowed_origins: ["https://app.example.com"]
)

If upgrading is not immediately possible, teams must implement alternative mitigation patterns. A manual Rack middleware can be written to drop requests containing unfamiliar Host headers. Additionally, developers must ensure that the local server is bound strictly to 127.0.0.1 or ::1 rather than the wild wildcard 0.0.0.0, reducing exposure from nearby hosts on local area networks.

Official Patches

modelcontextprotocolPrimary fix commit introducing Host and Origin validation
modelcontextprotocolv0.23.0 official release tag with secure-by-default mitigations

Fix Analysis (1)

Technical Appendix

CVSS Score
6.9/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
EPSS Probability
0.20%
Top 90% most exploited

Affected Systems

Model Context Protocol (MCP) Ruby SDK (mcp gem)

Affected Versions Detail

Product
Affected Versions
Fixed Version
mcp
modelcontextprotocol
< 0.23.0v0.23.0
AttributeDetail
CWE IDCWE-346, CWE-350
Attack VectorNetwork (AV:N)
CVSS Score6.9 (Medium)
Exploit StatusPoC Available
Affected ComponentStreamableHTTPTransport
Fixed Versionv0.23.0
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1557Adversary-in-the-Middle
Credential Access
T1190Exploit Public-Facing Application
Initial Access
CWE-346
Origin Validation Error

The software does not properly validate the origin of a request, letting unauthorized domains make state-modifying or sensitive requests.

References & Sources

  • [1]GHSA-rjr6-rcgv-9m7m: DNS-rebinding and cross-origin request execution in MCP Ruby SDK
  • [2]CVE-2026-63118 Record
  • [3]NVD - CVE-2026-63118 Detail

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 15 hours ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 16 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
3 views•14 min read
•about 17 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.

Alon Barad
Alon Barad
5 views•10 min read
•about 18 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 19 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 20 hours ago•CVE-2026-63410
5.9

CVE-2026-63410: Compiler-Induced Timing Side-Channel in secp256k1-native Scalar Multiplication

CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.

Alon Barad
Alon Barad
3 views•12 min read