Uncaught Exception Affecting engine.io package, versions >=5.1.0 <6.4.2


0.0
high

Snyk CVSS

    Attack Complexity Low
    Availability High

    Threat Intelligence

    EPSS 0.1% (41st percentile)
Expand this section
NVD
6.5 medium

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 ID SNYK-JS-ENGINEIO-5496331
  • published 4 May 2023
  • disclosed 3 May 2023
  • credit Thomas Rinsma

How to fix?

Upgrade engine.io to version 6.4.2 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 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.