CVE-2022-21676: Uncaught Exception in engine.io

engine.io Updated 02 Oct 2025

Summary

13/01/2022
Yes i
High
7.5

CVE-2022-21676: Uncaught Exception in engine.io. Affects engine.io across 3 version ranges.

>= 4.0.0, < 4.1.2 >= 5.0.0, < 5.2.1 >= 6.0.0, < 6.1.1

Fixed in 4.1.2, 5.2.1 or 6.1.1, depending on the release line you run. 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 for real-time communication between clients and servers. It provides a framework for bidirectional communication using websockets and other transport protocols. The package is widely used in applications that require real-time updates, such as chat applications, collaborative tools, and multiplayer games. However, a vulnerability has been discovered in versions 4.0.0 and above of the engine.io package, which can be exploited by a specially crafted HTTP request to trigger an uncaught exception on the server, leading to the termination of the Node.js process.

Vulnerability Detail

The vulnerability in the engine.io package allows an attacker to send a malicious HTTP request that triggers an uncaught exception on the server. This exception, caused by an invalid WebSocket frame, can lead to the termination of the Node.js process. The impact of this vulnerability is significant, as it affects all users of the engine.io package starting from version 4.0.0, including those who use depending packages like socket.io. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

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 versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 4.0.0, < 4.1.2 4.1.2
    npm install engine.io@4.1.2
  • >= 5.0.0, < 5.2.1 5.2.1
    npm install engine.io@5.2.1
  • >= 6.0.0, < 6.1.1 6.1.1
    npm install engine.io@6.1.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to a safe version of the engine.io package.

Conclusion

The vulnerability in the engine.io package can be exploited to terminate the Node.js process by sending a specially crafted HTTP request. To mitigate this vulnerability, it is crucial to update the engine.io package to a safe version. Users of the socket.io package should also ensure they are using a compatible version of engine.io. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for engine.io →

Share this vulnerability

FAQ

The vulnerability can be exploited by sending a specially crafted HTTP request, leading to the termination of the Node.js process. This can disrupt the functionality of applications that rely on the engine.io package for real-time communication.

The vulnerability affects versions 4.0.0 and above of the engine.io package. Versions prior to 4.0.0 are not impacted.

No, there are no known workarounds for this vulnerability. It is recommended to upgrade to a safe version of the engine.io package.

To fix the vulnerability, update the engine.io package to a safe version. Refer to the provided table for the fixed versions corresponding to each major branch. Users of the socket.io package should also ensure they are using a compatible version of engine.io.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. The playground allows you to analyze your package-lock.json file without requiring any signup or installation.

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 versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 4.0.0, < 4.1.2 4.1.2
    npm install engine.io@4.1.2
  • >= 5.0.0, < 5.2.1 5.2.1
    npm install engine.io@5.2.1
  • >= 6.0.0, < 6.1.1 6.1.1
    npm install engine.io@6.1.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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