Uncaught Exception Affecting engine.io package, versions <6.6.12


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.92% (62nd 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 Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ENGINEIO-23188826
  • published1 Dec 2026
  • disclosed1 Dec 2026
  • creditYuSheng Chen

Introduced: 1 Dec 2026

NewCVE-2026-137200  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade engine.io to version 6.6.12 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 Uncaught Exception via unhandled socket errors in server.ts when processing invalid upgrade requests. An attacker can send an upgrade request to a non-Engine.IO path and then abruptly disconnect (triggering ECONNRESET) before the destruction timeout fires. Because the error listener was previously registered inside the setTimeout callback, the socket emits an error event with no listener attached, causing the Node.js process to crash with an uncaught exception. This results in a complete server crash that any unauthenticated remote attacker can trigger.

Workaround

Register a listener for the error event on all upgrade sockets by adding a global upgrade handler to the HTTP server before attaching Engine.IO:

server.on("upgrade", (req, socket, head) => {
  socket.on("error", (err) => {
    console.debug(`[Workaround] Upgrade error: ${err.message}`);
  });
});

CVSS Base Scores

version 4.0
version 3.1