CVE-2026-67431: MCP Ruby SDK - Ruby SSE Session Poisoning Vulnerability

mcp Updated 01 Aug 2026

Summary

30/07/2026
Yes i
High
8.3

CVE-2026-67431: MCP Ruby SDK: Ruby SSE Session Poisoning. Affects mcp versions < 0.23.0. Fixed in 0.23.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The MCP Ruby SDK is a software development kit designed for building applications that utilize the Model Context Protocol (MCP). It facilitates real-time communication and data streaming between clients and servers. The SDK is widely used for its ability to handle server-sent events (SSE) and streamable HTTP transport, enabling developers to create interactive applications. However, it has a critical vulnerability that allows session hijacking due to a lack of session ownership validation.

Vulnerability Detail

The vulnerability arises from the absence of session ownership validation in the Ruby MCP SDK's Streamable and SSE HTTP transport implementation. An attacker who obtains a valid session ID can impersonate the victim and execute unauthorized actions within the victim's session. This silent attack compromises the integrity of the victim's session, allowing the attacker to manipulate state and execute tools without detection. The attack vector involves sending a POST request to the server with the stolen session ID, leading to unauthorized tool execution and responses being sent to the victim's SSE stream.

How To Fix

Latest published version: 1.8.1 as of 23 Oct 2026

gem install mcp -v 1.8.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.23.0

This is the first release that contains the fix.

gem install mcp -v 0.23.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that sensitive session IDs are not logged or exposed in any way that could allow attackers to capture them. Additionally, consider implementing additional security measures such as session expiration and monitoring for unusual activity.

Conclusion

The MCP Ruby SDK has a critical vulnerability (CVE-2026-67431) that allows session hijacking due to missing session ownership validation. It is essential to update to the patched version (0.23.0) to protect against unauthorized actions. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for mcp →

Share this vulnerability

FAQ

CVE-2026-67431 is a vulnerability in the MCP Ruby SDK that allows attackers to hijack sessions due to missing session ownership validation.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your manifest file.

The vulnerability can lead to unauthorized actions being executed in the victim's session, compromising data integrity and potentially affecting application functionality.

Yes, a patch is available in version 0.23.0 of the MCP Ruby SDK. It is recommended to update to this version to mitigate the vulnerability.

If an immediate update is not possible, implement workarounds such as avoiding logging session IDs and monitoring for unusual activity to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for mcp.

How To Fix

Latest published version: 1.8.1 as of 23 Oct 2026

gem install mcp -v 1.8.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.23.0

This is the first release that contains the fix.

gem install mcp -v 0.23.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback