| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-63119 |
| Date (index) | 2026-07-08 |
| Affected product (index) | MCP Ruby SDK (modelcontextprotocol/ruby-sdk): stdio IO#gets without line limit |
| GHSA ID | GHSA-7683-3w9x-ch42 |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-07-08 |
| Ecosystem | RubyGems |
| Component | MCP::Server::Transports::StdioTransport, MCP::Client::Stdio |
| EPSS score | Not yet scored (FIRST EPSS as of 2026-07-17) |
| CVSS score | 6.2 (v3.1) |
| CWE | CWE-400 / CWE-770 |
| Affected versions | <= 0.22.0 |
| Fixed versions | 0.23.0 |
| Fix status | Patched |
| Exploit status | Public advisory |
| Notes | Added during 2026-07-17 gap review. Cross-SDK stdio unbounded-buffer class (see also Kotlin/TS/Python advisories). |
Stdio transports read newline-delimited JSON-RPC frames with IO#gets and no limit argument. A peer streaming bytes without \n causes unbounded String growth until OOM.
Primary concern: sandboxed MCP server subprocess with unsandboxed host reader, or HTTP-to-stdio bridges forwarding remote bytes. Default stdio peer is often a trusted parent process.
Uncontrolled resource consumption (CWE-400, CWE-770).
A memory-capped sandboxed MCP server can exhaust the host process managing multiple MCP sessions.
lib/mcp/server/transports/stdio_transport.rb (lines using $stdin.gets)lib/mcp/client/stdio.rb (@stdout.gets)Upgrade to mcp gem >= 0.23.0, which applies a configurable maximum line length to all stdio read sites.