Skip to content
MediumVulnerability

CVE-2026-53937: MCP Kotlin SDK unbounded memory growth in stdio ReadBuffer

Identifier
CVE-2026-53937
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

MCP Kotlin SDK versions 0.7.0 through 0.12.0 contain an unbounded buffer in `ReadBuffer.append` (kotlin-sdk-core, ReadBuffer.kt), which writes every stdio chunk into a `kotlinx.io.Buffer` with no size cap. Frames are only extracted on a `\n` (0x0a) byte, so a peer that streams bytes without a newline grows the buffer until the JVM or host process is OOM-killed. The growth is amplified by `StdioServerTransport` and `StdioClientTransport`, which queue raw chunks through an unlimited channel with no backpressure or size guard, making this a remote pre-auth denial of service when stdin is fed by an untrusted producer.

Mitigation

Fixed in 0.13.0.