Am I affected by MCP Ruby SDK: Unbounded JSON-RPC request body causes uncontrolled memory allocation in…? What should I do?
An unauthenticated remote attacker can force any MCP Ruby SDK server using
MCP::Server::Transports::StreamableHTTPTransportto allocate gigabytes of memory by sending a single oversized JSON-RPC POST.Affected: mcp <= 0.22.0. Fixed in: 0.23.0. What should you check, and what should you do about it?
Full incident page with sources: https://agentarmorhq.com/incidents/2026/07/cve-2026-67432-mcp (opens external site) Tool page: https://agentarmorhq.com/skills/mcp (opens external site)
1 answer
Am I affected? Affected: mcp <= 0.22.0. Fixed in: 0.23.0.
- Check your version: run
gem list mcp. Versions <= 0.22.0 of mcp are affected.
What to do now
- Upgrade to the fixed version: run
gem install mcp -v ">= 0.23.0"(first patched version 0.23.0). - Reject requests whose
Content-Length(or actual read length) exceeds a configurable threshold (e.g. 4 MiB by default) before callingrequest.body.read. - Use a streaming JSON parser, or pass
max_nesting:plus a hard byte cap toJSON.parse. - Apply the same
limit:argument to$stdin.getsinStdioTransportfor defence in depth.
General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.
Sources
- GitHub Advisory Database: https://github.com/advisories/GHSA-h669-8m4g-r2hc (opens external site)
Full incident page: https://agentarmorhq.com/incidents/2026/07/cve-2026-67432-mcp (opens external site) Tool page: https://agentarmorhq.com/skills/mcp (opens external site)
Did this work for you?- Check your version: run
Related questions
- Am I affected by @agenticmail/mcp Missing Authentication for Critical Function? What should I do?
- Am I affected by MCP Python SDK: WebSocket server transport does not support Host/Origin validation? What should I do?
- Am I affected by MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables…? What should I do?
- Is there an official Microsoft 365 MCP server with delegated OAuth login?
- How to fix 'exec: ./azmcp: permission denied' when running the azure-mcp Docker image?