CVE-2022-41940
Uncaught exception in engine.io
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.1
Uncaught exception in engine.io
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.
- Record
CVE-2022-41940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H - Weakness
- CWE-248
- Updated
- 2026-11-02
EUVDEUVD-2022-7419
7.1
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.
- Record
EUVD-2022-7419- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-r7qp-cfhv-p84w
6.5
Uncaught exception in engine.io
Impact
A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process.
events.js:292
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -104,
code: 'ECONNRESET',
syscall: 'read'
}
This impacts all the users of the engine.io package, including those who uses depending packages like socket.io.
Patches
A fix has been released today (2022/11/20):
| Version range | Fixed version |
|-------------------|---------------|
| [email protected] | 3.6.1 |
| [email protected] | 6.2.1 |
For socket.io users:
| Version range | engine.io version | Needs minor update? |
|-----------------------------|---------------------|--------------------------------------------------------------------------------------------------------|
| [email protected] | ~6.2.0 | npm audit fix should be sufficient |
| [email protected] | ~6.1.0 | Please upgrade to [email protected] |
| [email protected] | ~6.0.0 | Please upgrade to [email protected] |
| [email protected] | ~5.2.0 | Please upgrade to [email protected] |
| [email protected] | ~5.1.1 | Please upgrade to [email protected] |
| [email protected] | ~5.0.0 | Please upgrade to [email protected] |
| [email protected] | ~4.1.0 | Please upgrade to [email protected] (see here) |
| [email protected] | ~4.0.0 | Please upgrade to [email protected] (see here) |
| [email protected] | ~3.6.0 | npm audit fix should be sufficient |
| [email protected] and below | ~3.5.0 | Please upgrade to [email protected] |
Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
- Open an issue in
engine.io
Thanks to Jonathan Neve for the responsible disclosure.
- Record
GHSA-r7qp-cfhv-p84w- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-248
- Updated
- 2026-11-02
NVD
7.1
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.
- Record
CVE-2022-41940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-248
- Updated
- 2026-11-02
OSVAZL-44820
6.5
CVE-2022-41940 affecting package js-jquery 3.5.0-4
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.
- Record
AZL-44820- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
OSV
7.1
Uncaught exception in engine.io
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.
- Record
CVE-2022-41940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H - Weakness
- CWE-248
- Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-r7qp-cfhv-p84w
6.5
Uncaught exception in engine.io
Impact
A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process.
events.js:292
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -104,
code: 'ECONNRESET',
syscall: 'read'
}
This impacts all the users of the engine.io package, including those who uses depending packages like socket.io.
Patches
A fix has been released today (2022/11/20):
| Version range | Fixed version |
|-------------------|---------------|
| [email protected] | 3.6.1 |
| [email protected] | 6.2.1 |
For socket.io users:
| Version range | engine.io version | Needs minor update? |
|-----------------------------|---------------------|--------------------------------------------------------------------------------------------------------|
| [email protected] | ~6.2.0 | npm audit fix should be sufficient |
| [email protected] | ~6.1.0 | Please upgrade to [email protected] |
| [email protected] | ~6.0.0 | Please upgrade to [email protected] |
| [email protected] | ~5.2.0 | Please upgrade to [email protected] |
| [email protected] | ~5.1.1 | Please upgrade to [email protected] |
| [email protected] | ~5.0.0 | Please upgrade to [email protected] |
| [email protected] | ~4.1.0 | Please upgrade to [email protected] (see here) |
| [email protected] | ~4.0.0 | Please upgrade to [email protected] (see here) |
| [email protected] | ~3.6.0 | npm audit fix should be sufficient |
| [email protected] and below | ~3.5.0 | Please upgrade to [email protected] |
Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
- Open an issue in
engine.io
Thanks to Jonathan Neve for the responsible disclosure.
- Record
GHSA-r7qp-cfhv-p84w- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-248
- Updated
- 2026-11-02
OSVCLSA-2026-1773015266 No score
TuxCare security update for engine.io (2 CVEs)
TuxCare rebuilt engine.io to address 2 CVEs. Fixed in 3.2.1-tuxcare.2.
- Record
CLSA-2026-1773015266- Updated
- 2026-11-02
OSVCLSA-2026-1776818202 No score
TuxCare security update for engine.io (2 CVEs)
TuxCare rebuilt engine.io to address 2 CVEs. Fixed in 3.1.5-tuxcare.1.
- Record
CLSA-2026-1776818202- Updated
- 2026-11-02
OSVCLSA-2026-1784856203 No score
TuxCare security update for engine.io (2 CVEs)
TuxCare rebuilt engine.io to address 2 CVEs. Fixed in 1.8.3-tuxcare.1.
- Record
CLSA-2026-1784856203- Updated
- 2026-11-02
OSVCLSA-2026-1792605466 No score
TuxCare security update for engine.io (2 CVEs)
TuxCare rebuilt engine.io to address 2 CVEs. Fixed in 4.1.2-tuxcare.1.
- Record
CLSA-2026-1792605466- Updated
- 2026-11-02
OSVCLSA-2026-1792605582 No score
TuxCare security update for engine.io (2 CVEs)
TuxCare rebuilt engine.io to address 2 CVEs. Fixed in 1.8.5-tuxcare.1.
- Record
CLSA-2026-1792605582- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2022-41940 No score
CVE-2022-41940 in @rootio/engine.io - Patched by Root
Root has patched CVE-2022-41940 in the @rootio/engine.io package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2022-41940- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
engine.ionpm |
before 3.6.1 | 3.6.1 |
engine.ionpm |
4.0.0 up to 6.2.1 | 6.2.1 |
js-jqueryAzure Linux:3 |
through 3.5.0-4 | None known |
engine.ioTuxCare:npm From an advisory covering 2 CVEs |
3.2.1-tuxcare.0 up to 3.2.1-tuxcare.2, plus listed versions 3.2.13.2.1-tuxcare.1 |
3.2.1-tuxcare.2 |
engine.ioTuxCare:npm From an advisory covering 2 CVEs |
3.1.5-tuxcare.0 up to 3.1.5-tuxcare.1, plus listed versions 3.1.5 |
3.1.5-tuxcare.1 |
engine.ioTuxCare:npm From an advisory covering 2 CVEs |
1.8.3-tuxcare.0 up to 1.8.3-tuxcare.1, plus listed versions 1.8.3 |
1.8.3-tuxcare.1 |
engine.ioTuxCare:npm From an advisory covering 2 CVEs |
4.1.2-tuxcare.0 up to 4.1.2-tuxcare.1, plus listed versions 4.1.2 |
4.1.2-tuxcare.1 |
engine.ioTuxCare:npm From an advisory covering 2 CVEs |
1.8.5-tuxcare.0 up to 1.8.5-tuxcare.1, plus listed versions 1.8.5 |
1.8.5-tuxcare.1 |
@rootio/engine.ioRoot:npm |
before 4.1.2-root.io.1 | 4.1.2-root.io.14.1.2-root.io.2 |
engine.ioRoot:npm |
before 4.1.2-aikido.2 | 4.1.2-aikido.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-41940 is a high vulnerability (CVSS 7.1) in Socket Engine.io, published November 21, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.11%, the 81st percentile. Fixed in engine.io 3.6.1.
References
github.com/socketio/engine.io/security/advisories/GHSA-r7qp-cfhv-p84w
github.com/socketio/engine.io/commit/425e833ab13373edf1dd5a0706f07100db14e3c6
github.com/socketio/engine.io/commit/83c4071af871fc188298d7d591e95670bf9f9085
nvd.nist.gov/vuln/detail/CVE-2022-41940
github.com/advisories/GHSA-r7qp-cfhv-p84w
github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41940.json
github.com/socketio/engine.io