Description
MCP Ruby SDK is the official Ruby SDK for Model Context Protocol servers and clients. Prior to version 0.9.2, the Ruby SDK's streamable_http_transport.rb implementation contains a session hijacking vulnerability. An attacker who obtains a valid session ID can completely hijack the victim's Server-Sent Events (SSE) stream and intercept all real-time data. Version 0.9.2 contains a patch.
Published: 2026-03-27
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Server‑Sent Events stream hijacking via session ID replay
Action: Immediate Patch
AI Analysis

Impact

The MCP Ruby SDK, employed to interact with Model Context Protocol servers, contains a flaw in its streamable_http_transport.rb component before version 0.9.2. The SDK fails to bind Server‑Sent Events streams to a unique, session‑specific context. Consequently, an attacker who obtains a valid session identifier can replay that token to the server and establish a connection that the server treats as the victim’s authorized stream. This permits the attacker to hijack the victim’s real‑time event feed and intercept all data intended for the legitimate client, resulting in a confidentiality breach. The weakness aligns with CWE‑384 (Session Fixation) and CWE‑639 (Account or Resource Hijacking).

Affected Systems

The issue impacts installations of the Model Context Protocol Ruby SDK (modelcontextprotocol:ruby-sdk) prior to version 0.9.2. The flaw resides in the streamable_http_transport.rb implementation used by Ruby clients for Server‑Sent Events communication with Model Context Protocol servers. No other vendors or programming language SDKs are affected by this specific vulnerability.

Risk and Exploitability

The CVSS v3 score of 8.2 marks this vulnerability as high severity. While the EPSS score is below 1 %, the exclusion of this flaw from the CISA KEV catalog does not eliminate the possibility of exploitation; an attacker who acquires a session token—through sniffing, phishing, or another side channel—could replay it and hijack an SSE stream. The attack vector is inferred to be session ID replay, requiring the attacker to first capture or otherwise obtain the victim’s session identifier before contacting the server. With the vulnerability residing entirely in the client SDK, services that rely on that SDK for real-time data are at risk of unauthorized data interception.

Generated by OpenCVE AI on April 2, 2026 at 16:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Model Context Protocol Ruby SDK to version 0.9.2 or later.
  • Verify the SDK version in all affected deployments to confirm the patch is applied.
  • Review any custom SSE handling code to enforce proper session validation or binding.
  • If an upgrade cannot be performed immediately, consider implementing additional server‑side checks that require new session identifiers for each SSE connection.

Generated by OpenCVE AI on April 2, 2026 at 16:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qvqr-5cv7-wh35 MCP Ruby SDK: Insufficient Session Binding Allows SSE Stream Hijacking via Session ID Replay
History

Thu, 02 Apr 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Lfprojects
Lfprojects mcp Ruby Sdk
CPEs cpe:2.3:a:lfprojects:mcp_ruby_sdk:*:*:*:*:*:*:*:*
Vendors & Products Lfprojects
Lfprojects mcp Ruby Sdk
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Mon, 30 Mar 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 30 Mar 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Modelcontextprotocol
Modelcontextprotocol ruby-sdk
Vendors & Products Modelcontextprotocol
Modelcontextprotocol ruby-sdk

Sat, 28 Mar 2026 03:15:00 +0000

Type Values Removed Values Added
Description MCP Ruby SDK is the official Ruby SDK for Model Context Protocol servers and clients. Prior to version 0.9.2, the Ruby SDK's streamable_http_transport.rb implementation contains a session hijacking vulnerability. An attacker who obtains a valid session ID can completely hijack the victim's Server-Sent Events (SSE) stream and intercept all real-time data. Version 0.9.2 contains a patch.
Title MCP Ruby SDK: Insufficient Session Binding Allows SSE Stream Hijacking via Session ID Replay
Weaknesses CWE-384
CWE-639
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Lfprojects Mcp Ruby Sdk
Modelcontextprotocol Ruby-sdk
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-30T18:42:43.387Z

Reserved: 2026-03-24T19:50:52.105Z

Link: CVE-2026-33946

cve-icon Vulnrichment

Updated: 2026-03-30T18:42:28.737Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-27T22:16:21.580

Modified: 2026-04-02T15:23:21.757

Link: CVE-2026-33946

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-02T20:22:54Z

Weaknesses