RustSeverity: LowStatus: Fixed
Client SSE framing buffers have no size cap
The client-side SSE framing buffers in SseParser and the legacy SSE client appended incoming bytes with no size cap, so a server that never finished a line or an event could make the client buffer grow without a limit. Reaching it needs a server the client connects to, or a plain HTTP man in the middle. The reviewed crate was rust-mcp-transport 2.0.0. Reported in public issue #302 by ucsurf; fixed by Ali Hashemi in PR #305 (47cba81), released in rust-mcp-transport 2.0.1. Ali Hashemi (hashemix) closed the issue as completed on 2026-11-29 via release pull request 303.
The issue
The client-side SSE framing buffers in rust-mcp-transport grew without a size limit. SseParser appended each incoming chunk and drained the buffer only at a newline. The legacy SSE client appended bytes the same way. A server that never finished a line or an event could make the client process keep that data. The cap that already applied to lines after framing did not bound these buffers.
Reaching it needs a server the client connects to, or a plain HTTP man in the middle. The reviewed crate was rust-mcp-transport 2.0.0.
The fix
Reported in public issue 302 by ucsurf. Ali Hashemi (hashemix) fixed it in pull request 305, merged as 47cba81 on 2026-11-29. Both the streamable HTTP client and the legacy SSE client now bound the framing buffer and drop oversized input.
The fix is in rust-mcp-transport 2.0.1, tagged rust-mcp-transport-v2.0.1. hashemix closed issue 302 as completed on 2026-11-29 through release pull request 303.
Timeline
- Found
- Reported via public issue
- Disclosed publicly
- Entry last updated
Machine-readable: JSON · Markdown · ID security/rust/rust-mcp-stack__rust-mcp-sdk/2026-11-29-sse-framing-buffers-no-size-cap
If this work is useful to you, you can support it on Buy Me a Coffee.