CVE-2026-53937: CWE-400: Uncontrolled Resource Consumption in modelcontextprotocol io.modelcontextprotocol:kotlin-sdk
CVE-2026-53937 is a denial of service vulnerability in the MCP Kotlin SDK (io.modelcontextprotocol:kotlin-sdk) versions 0.7.0 through 0.12.0. The issue arises because the ReadBuffer.append method writes incoming byte chunks into an unbounded buffer without size limits, only extracting frames when a newline byte is received. An attacker can exploit this by streaming bytes without newlines, causing the buffer to grow indefinitely and ultimately leading to an out-of-memory condition that crashes the JVM or host process. This vulnerability affects scenarios where the SDK stdio server's stdin is fed by untrusted or attacker-controlled input. The issue is fixed in version 0.13.0.
AI Analysis
Technical Summary
The MCP Kotlin SDK versions 0.7.0 through 0.12.0 contain an uncontrolled resource consumption vulnerability (CWE-400) in the ReadBuffer.append function. Incoming byte chunks from stdio transport are appended to a kotlinx.io.Buffer without any size cap, and frames are only extracted upon receiving a newline byte (0x0a). If a peer continuously streams bytes without newlines, the internal buffer grows without bound, causing memory exhaustion and potential JVM or host process termination. The problem is worsened by StdioServerTransport and StdioClientTransport components that queue raw byte chunks through an unbounded channel and append them without backpressure or size checks. This results in a remote pre-authentication denial of service when the SDK stdio server's stdin is fed by untrusted sources, such as subprocesses or sidecar wrappers proxying network data. The vulnerability is resolved in version 0.13.0.
Potential Impact
An attacker can cause a denial of service by sending a continuous stream of bytes without newline characters to the MCP Kotlin SDK stdio server, leading to unbounded memory growth and eventual out-of-memory termination of the JVM or host process. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade to version 0.13.0 or later, which fixes the uncontrolled resource consumption issue. Until then, avoid exposing the SDK stdio server's stdin to untrusted or attacker-controlled input sources. Patch status is not explicitly stated in a vendor advisory, but version 0.13.0 is confirmed to fix the issue.
CVE-2026-53937: CWE-400: Uncontrolled Resource Consumption in modelcontextprotocol io.modelcontextprotocol:kotlin-sdk
Description
CVE-2026-53937 is a denial of service vulnerability in the MCP Kotlin SDK (io.modelcontextprotocol:kotlin-sdk) versions 0.7.0 through 0.12.0. The issue arises because the ReadBuffer.append method writes incoming byte chunks into an unbounded buffer without size limits, only extracting frames when a newline byte is received. An attacker can exploit this by streaming bytes without newlines, causing the buffer to grow indefinitely and ultimately leading to an out-of-memory condition that crashes the JVM or host process. This vulnerability affects scenarios where the SDK stdio server's stdin is fed by untrusted or attacker-controlled input. The issue is fixed in version 0.13.0.
CVSS v3.1
Score 6.2medium
Affected software
pkg:maven/io.modelcontextprotocol/kotlin-sdkRun 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
Technical Analysis
The MCP Kotlin SDK versions 0.7.0 through 0.12.0 contain an uncontrolled resource consumption vulnerability (CWE-400) in the ReadBuffer.append function. Incoming byte chunks from stdio transport are appended to a kotlinx.io.Buffer without any size cap, and frames are only extracted upon receiving a newline byte (0x0a). If a peer continuously streams bytes without newlines, the internal buffer grows without bound, causing memory exhaustion and potential JVM or host process termination. The problem is worsened by StdioServerTransport and StdioClientTransport components that queue raw byte chunks through an unbounded channel and append them without backpressure or size checks. This results in a remote pre-authentication denial of service when the SDK stdio server's stdin is fed by untrusted sources, such as subprocesses or sidecar wrappers proxying network data. The vulnerability is resolved in version 0.13.0.
Potential Impact
An attacker can cause a denial of service by sending a continuous stream of bytes without newline characters to the MCP Kotlin SDK stdio server, leading to unbounded memory growth and eventual out-of-memory termination of the JVM or host process. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade to version 0.13.0 or later, which fixes the uncontrolled resource consumption issue. Until then, avoid exposing the SDK stdio server's stdin to untrusted or attacker-controlled input sources. Patch status is not explicitly stated in a vendor advisory, but version 0.13.0 is confirmed to fix the issue.
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
- Remediation Level
- null
Threat ID: 6aa098c9acd9273b495cca7f
Added to database: 09/08/2026, 23:22:49 UTC
Last enriched: 09/08/2026, 23:37:52 UTC
Last updated: 09/09/2026, 00:17:22 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.