Skip to main content

mcp-framework EUVDEUVD-2026-23300

| CVE-2026-39313 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-16 https://github.com/QuantGeekDev/mcp-framework GHSA-353c-v8x9-v7c3
8.7
CVSS 4.0 · Vendor: https://github.com/QuantGeekDev/mcp-framework
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed /mcp HTTP endpoint
  2. Delivery
    Send single large POST body
  3. Exploit
    Unbounded string buffering in readRequestBody
  4. Execution
    Node memory exhaustion
  5. Impact
    Server process crash (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must run mcp-framework <= 0.2.21 using the HttpStreamTransport with its HTTP endpoint (/mcp) reachable by the attacker; no authentication is required because readRequestBody() executes before any auth check and auth is opt-in/off by default (CVSS PR:N). The only real limiting factors are network reachability of the HTTP transport (STDIO-only or localhost-bound deployments are not remotely exploitable) and any upstream proxy/gateway that already imposes a request-size limit. No user interaction, special privileges, or non-default toggle is needed - the dead maxMessageSize config provides no protection.

Impact

Signals are largely consistent and point to a genuine, easy-to-trigger availability issue but not a top-tier emergency. The CVSS 3.1 vector suggested by the reporter (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5) and the NVD-style CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H = 8.7) agree: network reachable, low complexity, no privileges, availability-only impact. SSVC reinforces this - Exploitation: poc, Automatable: yes, Technical Impact: partial - meaning it is trivially scriptable but only degrades availability, not confidentiality or integrity. Countervailing that, EPSS is low (0.14%, 34th percentile) and this is NOT in CISA KEV, so there is no evidence of active exploitation. The main uncertainty is real-world exposure: MCP servers are frequently run locally or behind a gateway rather than exposed to the open internet, which tempers the 'network unauthenticated' framing even though the code path itself requires no auth. Net: a real, patch-worthy DoS to prioritize for internet-facing MCP deployments, but not a drop-everything RCE.

Exploit ScenarioDerived

An attacker who can reach an internet-exposed mcp-framework HTTP server sends a single crafted HTTP POST to /mcp with a very large body (the PoC used 50MB). Because readRequestBody() buffers the entire body in memory before any auth or size check, RSS spikes and the Node process can be pushed to memory exhaustion and crash, denying service to all users. Publicly documented PoC steps exist and the attack is fully scriptable (SSVC Automatable: yes), requiring no credentials.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Denial of service in mcp-framework (npm) versions <= 0.2.21 lets a remote unauthenticated attacker crash any server using the HttpStreamTransport by sending a single oversized HTTP POST to /mcp, exhausting memory. The readRequestBody() function concatenates request-body chunks into a string with no cap, and although a 4MB maxMessageSize config value exists it is never enforced. Publicly available exploit code exists (SSVC 'poc'), a vendor patch shipped in 0.2.22, and EPSS is low (0.14%, 34th percentile).

RemediationAI

Vendor-released patch: upgrade mcp-framework to 0.2.22 or later, which enforces maxMessageSize inside readRequestBody() (fix commit https://github.com/QuantGeekDev/mcp-framework/commit/f97d2bb76d6359faf10cd1fc54b4911476b62524; advisory https://github.com/QuantGeekDev/mcp-framework/security/advisories/GHSA-353c-v8x9-v7c3). If you cannot upgrade immediately, place the MCP endpoint behind a reverse proxy (nginx/Envoy) or API gateway and enforce a request body size limit (for example nginx client_max_body_size 4m), which caps payloads before they reach Node - the trade-off is that legitimate large MCP messages will be rejected, so tune the limit to your protocol needs. Additionally, restrict network access to the /mcp endpoint (bind to localhost or an internal interface, or require the framework's opt-in authentication) so untrusted clients cannot reach readRequestBody() at all; note this reduces exposure but does not fix the underlying unbounded allocation.

Affected VersionsENISA

mcp-framework < 0.2.22

Affected Packages

npm mcp-framework fix: 0.2.22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mcp-framework is a Node.js/TypeScript framework for building Model Context Protocol (MCP) servers; the flaw lives in its HTTP streaming transport (src/transports/http/server.ts). The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling): readRequestBody() attaches a 'data' listener that appends every incoming chunk to an in-memory JavaScript string (body += chunk.toString()) until 'end', then JSON.parse()s it. Because there is no running byte counter or early abort, the buffered body - plus the transient allocations from toString() and JSON.parse() - grows unbounded with the client-controlled payload. A maxMessageSize (4MB) default was defined in types.ts but never wired into the read path, so the intended throttle was dead code.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/QuantGeekDev/mcp-framework) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Remote, low-complexity, unauthenticated request to the pre-auth HTTP read path (AV:N/AC:L/PR:N/UI:N); impact is availability-only memory exhaustion, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/QuantGeekDev/mcp-framework).

CVSS VectorVendor: https://github.com/QuantGeekDev/mcp-framework

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 16, 2026 - 22:22 NVD
8.7 (HIGH)
Patch released
Apr 16, 2026 - 21:15 nvd
Patch available
CVE Published
Apr 16, 2026 - 20:44 nvd
HIGH 8.7

DescriptionCVE.org

Summary

The readRequestBody() function in src/transports/http/server.ts concatenates HTTP request body chunks into a string with no size limit, allowing a remote unauthenticated attacker to crash the server via memory exhaustion with a single large HTTP POST request.

Details

File: src/transports/http/server.ts, lines 224-240

typescript
private async readRequestBody(req: IncomingMessage): Promise<any> {
    return new Promise((resolve, reject) => {
      let body = '';
      req.on('data', (chunk) => {
        body += chunk.toString();   // No size limit
      });
      req.on('end', () => {
        try {
          const parsed = body ? JSON.parse(body) : null;
          resolve(parsed);
        } catch (error) {
          reject(error);
        }
      });
      req.on('error', reject);
    });
  }

A maxMessageSize configuration value exists in DEFAULT_HTTP_STREAM_CONFIG (4MB, defined in src/transports/http/types.ts line 124) but is never enforced in readRequestBody(). This creates a false sense of security.

PoC

Local testing with 50MB POST payloads against the vulnerable readRequestBody() function:

TrialPayloadRSS growthTimeResult
150MB+197MB42msVulnerable
250MB+183MB46msVulnerable
350MB+15MB43msVulnerable
450MB+14MB32msVulnerable
550MB+65MB38msVulnerable

Reproducibility: 5/5 (100%)

Impact

  • Denial of Service: Any mcp-framework HTTP server can be crashed by a single large POST request to /mcp
  • No authentication required: readRequestBody() executes before any auth checks (auth is opt-in, default is no auth)
  • Dead config: maxMessageSize exists but is never enforced, giving a false sense of security
  • Affected: All applications using mcp-framework HttpStreamTransport (60,000 weekly npm downloads)

CWE-770: Allocation of Resources Without Limits or Throttling Suggested CVSS 3.1: 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

Suggested Fix

Enforce maxMessageSize in readRequestBody():

typescript
private async readRequestBody(req: IncomingMessage): Promise<any> {
    const maxSize = this._config.maxMessageSize || 4 * 1024 * 1024;
    return new Promise((resolve, reject) => {
      let body = '';
      let size = 0;
      req.on('data', (chunk) => {
        size += chunk.length;
        if (size > maxSize) {
          req.destroy();
          reject(new Error('Request body too large'));
          return;
        }
        body += chunk.toString();
      });
      // ...
    });
  }

Disclosure Timeline

This report follows coordinated disclosure. I request a 90-day window before public disclosure.

Reporter: Raza Sharif, CyberSecAI Ltd (contact@agentsign.dev)

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 91 npm packages depend on mcp-framework (89 direct, 2 indirect)

Ecosystem-wide dependent count for version 0.2.22.

Executive ViewAI

Why It Matters

mcp-framework npm package versions up to 0.2.21 contain a remote denial-of-service vulnerability that allows unauthenticated attackers to crash affected servers by sending a single oversized HTTP request, immediately impacting service availability. Organizations using this package in production should prioritize patching, as publicly available exploit code exists and exploitation requires no authentication or privileges.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Prevalence
Low
niche Node.js MCP-server framework, modest npm download footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy