Skip to content
RedCVE

CVE-2026-53937Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk uncontrolled resource consumption

modelcontextprotocolPublished:

CVSS score

6.2

Medium

CVSS 3.1 from github.com

Exploit probability (EPSS)

0.19%

0.19% chance of exploitation in the next 30 days, higher than 8.16% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: security-advisories@github.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-client, modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-core, modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-server and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Io.modelcontextprotocol:kotlin-sdk-client to 0.13.0 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

Affected productsVersions
modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk< 0.13.0
modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-client>= 0.7.0, < 0.13.0
modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-core< 0.13.0
modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-server>= 0.7.0, < 0.13.0

Weakness

  • CWE-400 uncontrolled resource consumption
  • CWE-770 allocation of resources without limits

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-53937 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-53937?

CVE-2026-53937 has a CVSS 3.1 base score of 6.2 (medium).

Which versions are affected?

Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk (< 0.13.0), Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-client (>= 0.7.0, < 0.13.0), Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-core (< 0.13.0), Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-server (>= 0.7.0, < 0.13.0)

Is there a patch for CVE-2026-53937?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.