Skip to content

[GHSA-9w48-x22j-rrm7] - [v2] - Network tracker buffers a POST event-stream response with no size limit #2948

Closed

Description

@cliffhall

Advisory: GHSA-9w48-x22j-rrm7
Status: published; fixed in 2.15.0
Severity: Medium (CVSS 3.1: 6.5)
Affected: v2 (all 2.x through 2.14.0). v1 is not affected.

The fetch tracker behind the Network log (core/mcp/fetchTracking.ts) treated only GET event streams as long-lived, so a POST answered with text/event-stream (normal for streamable HTTP) was read in full with an uncapped response.clone().text(). A response that never ends grows that buffer without limit in the backend process, which serves every session.

Fix: read the tracked copy through a capped reader (TRACKED_BODY_MAX_BYTES, 1 MiB), record a truncated body, and cancel only the tracker's copy so the transport's stream keeps flowing. Developed and reviewed in the advisory's private fork; it lands through #2944.

Scope note: this bounds the Inspector's own buffering. The MCP SDK's own handling of POST SSE and JSON responses is outside this fix.

Priority (2026-11-11): Severity 4 — a server under test can take down the whole backend; availability only. Urgency 4 — accepted advisory affecting every published 2.x. +1 security. Total 9 → High.

Activity

  1. added
    v2
    bug
    on Nov 11, 2026
  2. self-assigned this
    on Nov 11, 2026
  3. added this to the v2.15.0 milestone on Nov 11, 2026
  4. cliffhall commented on Nov 11, 2026

    @cliffhall
    MemberAuthor

    Fixed by #2944 (merged to v2/main as bc08507). Ships in v2.15.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions