CVE-2022-41940 Uncaught exception in engine.io

High 7.1 Published Updated

A specially crafted HTTP request causes an uncaught exception in Engine.IO, crashing the Node.js process and denying service to users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-41940?

CVE-2022-41940 is a high-severity denial of service vulnerability in socketio engine.io, published on 22 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process. This impacts all the users of the engine.io package, including those who uses depending packages like socket.io. There is no known workaround except upgrading to a safe version. There are patches for this issue released in versions 3.6.1 and 6.2.1.

Weakness: CWE-248

Which versions are affected by CVE-2022-41940?

4 open source packages ship an affected version, including engine.io. It affects 1 product.

PackageAffectedFixed in
engine.io npmAll versions3.6.1
engine.io npmAll versions3.6.1
engine.io npmFrom 4.0.06.2.1
engine.io npmFrom 4.0.06.2.1

Products include Socket Engine.io.

How do I fix CVE-2022-41940?

Upgrade engine.io to a fixed version for your release line: 3.6.1 or 6.2.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-41940 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41940 exists.

Sources

Also known as AZL-44820, GHSA-r7qp-cfhv-p84w, ROOT-APP-NPM-CVE-2022-41940.

Is CVE-2022-41940 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free