engine.io@6.2.0 vulnerabilities

The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server

Direct Vulnerabilities

Known vulnerabilities in the engine.io package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Uncaught Exception

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 such that a specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process.

TypeError: Cannot read properties of undefined (reading 'handlesUpgrades')
    at Server.onWebSocket (build/server.js:515:67)

Note: This issue impacts all the users of the engine.io package, including those who uses depending packages like socket.io.

How to fix Uncaught Exception?

Upgrade engine.io to version 6.4.2 or higher.

>=5.1.0 <6.4.2
  • H
Denial of Service (DoS)

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 Denial of Service (DoS). A malicious client could send a specially crafted HTTP request, triggering an uncaught exception and killing the Node.js process.

How to fix Denial of Service (DoS)?

Upgrade engine.io to version 3.6.1, 6.2.1 or higher.

<3.6.1 >=4.0.0 <6.2.1