Skip to main content
EPSS 0.2%top 92%

CVE-2026-53937: CWE-400: Uncontrolled Resource Consumption in modelcontextprotocol io.modelcontextprotocol:kotlin-sdk

0
Medium
VulnerabilityCVE-2026-53937cvecve-2026-53937cwe-400cwe-770
Published: 09/08/2026 (09/08/2026, 23:21:46 UTC)
Source: CVE Database V5
Vendor/Project: modelcontextprotocol
Product: io.modelcontextprotocol:kotlin-sdk

Description

MCP Kotlin SDK is the Kotlin Multiplatform software development kit for the Model Context Protocol. In versions 0.7.0 through 0.12.0, `ReadBuffer.append` in `kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/shared/ReadBuffer.kt` writes every chunk of bytes received from the stdio transport into a `kotlinx.io.Buffer` with no size cap. Frames are extracted from that buffer only when a `\n` (0x0a) byte is observed. A peer that streams bytes without ever sending a newline causes the internal buffer to grow indefinitely until the JVM (or the surrounding host process) is OOM-killed. The leak is amplified by `StdioServerTransport` and `StdioClientTransport`, which both queue raw chunks through a `kotlinx.coroutines.channels.Channel<ByteArray>(Channel.UNLIMITED)` and then call `readBuffer.append(chunk)` without backpressure or size guard. This is a remote-pre-auth denial of service whenever an SDK stdio server's stdin is fed by an untrusted or attacker-controlled producer (for example: a host program that exec's the MCP server as a subprocess and pipes through bytes received from a network peer, or a sidecar wrapper that proxies bytes from an HTTP endpoint to the stdio transport). Version 0.13.0 fixes the issue.

CVSS v3.1

Score 6.2medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

modelcontextprotocol

io.modelcontextprotocol:kotlin-sdk

Affected versions
<0.13.0

modelcontextprotocol

io.modelcontextprotocol:kotlin-sdk-client

Affected versions
>=0.7.0 <0.13.0

modelcontextprotocol

io.modelcontextprotocol:kotlin-sdk-core

Affected versions
<0.13.0

modelcontextprotocol

io.modelcontextprotocol:kotlin-sdk-server

Affected versions
>=0.7.0 <0.13.0
io.modelcontextprotocol/kotlin-sdk
pkg:maven/io.modelcontextprotocol/kotlin-sdk
Affected versions
<0.13.0 >=0.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/16/2026, 01:12:24 UTC

Technical Analysis

The MCP Kotlin SDK (io.modelcontextprotocol:kotlin-sdk) versions 0.7.0 through 0.12.0 contain an uncontrolled resource consumption vulnerability (CWE-400) in the ReadBuffer.append function. This function appends every chunk of bytes received from stdio transport into a kotlinx.io.Buffer without any size cap. Frames are only extracted when a newline byte (0x0a) is observed. If a peer streams bytes continuously without sending a newline, the internal buffer grows without bound, leading to out-of-memory (OOM) conditions. The problem is worsened by StdioServerTransport and StdioClientTransport, which queue raw chunks in an unbounded channel and call readBuffer.append without backpressure or size guards. This results in a remote pre-auth denial of service when the SDK stdio server's stdin is fed by untrusted or attacker-controlled data, such as from a subprocess or sidecar proxy. The vulnerability is resolved in version 0.13.0.

Potential Impact

An attacker who can send data to the stdio transport of the MCP Kotlin SDK server can cause unbounded memory growth by sending a continuous stream of bytes without newline characters. This leads to out-of-memory conditions and crashes of the JVM or host process, resulting in denial of service. There is no impact on confidentiality or integrity, only availability.

Mitigation Recommendations

Upgrade to version 0.13.0 or later, which fixes the uncontrolled resource consumption issue. Until upgraded, avoid exposing the stdio transport to untrusted or attacker-controlled input sources. No other mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T15:46:12.318Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aa098c9acd9273b495cca7f

Added to database: 09/08/2026, 23:22:49 UTC

Last enriched: 09/16/2026, 01:12:24 UTC

Last updated: 10/23/2026, 15:10:13 UTC

Views: 93

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses