CVE-2023-31125: engine.io Uncaught Exception vulnerability

engine.io Updated 02 Oct 2025

Summary

03/05/2023
Yes i
Moderate
6.5

CVE-2023-31125: engine.io Uncaught Exception vulnerability. Affects engine.io versions >= 5.1.0, < 6.4.2. Fixed in 6.4.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The engine.io package is an open-source library that provides real-time bidirectional communication between web clients and servers. It is commonly used by applications that require real-time updates, such as chat applications and collaborative tools. This vulnerability affects all users of the engine.io package, including those who use depending packages like socket.io.

Vulnerability Detail

A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, leading to the termination of the Node.js process. The exception is caused by a TypeError when attempting to read properties of an undefined object (handlesUpgrades). This vulnerability can be exploited by an attacker to disrupt the availability of the affected application. The vulnerability was introduced in version 5.1.0 of the engine.io package and fixed in version 6.4.2. Users of the socket.io package should also update to a safe version.

How To Fix

Latest published version: 6.6.11 as of 23 Oct 2026

npm install engine.io@6.6.11

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.4.2

This is the first release that contains the fix.

npm install engine.io@6.4.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability except upgrading to a safe version.

Conclusion

The engine.io Uncaught Exception vulnerability can be mitigated by upgrading to version 6.4.2 of the engine.io package. Users of the socket.io package should also ensure they are using a safe version. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for engine.io →

Share this vulnerability

FAQ

This vulnerability can be exploited by an attacker to terminate the Node.js process, leading to the unavailability of the affected application.

Versions 5.1.0 to 6.4.1 of the engine.io package are affected.

No, there are no known workarounds for this vulnerability.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will provide real-time alerts for open-source vulnerabilities.

You can open an issue in the engine.io GitHub repository for more information.

Related vulnerabilities

Recent vulnerabilities recorded for engine.io.

How To Fix

Latest published version: 6.6.11 as of 23 Oct 2026

npm install engine.io@6.6.11

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.4.2

This is the first release that contains the fix.

npm install engine.io@6.4.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback