Every CVE Search/ Get API key

CVE-2022-41940

Uncaught exception in engine.io

7.1 HighFix available

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

2.11%Up 1.2 points since Nov 22, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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:

Thanks to Jonathan Neve for the responsible disclosure.

Record
GHSA-r7qp-cfhv-p84w
CVSS 3.1
6.5 MediumCVSS: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 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H
CVSS 3.1
6.5 MediumCVSS: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 MediumCVSS: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 HighCVSS: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:

Thanks to Jonathan Neve for the responsible disclosure.

Record
GHSA-r7qp-cfhv-p84w
CVSS 3.1
6.5 MediumCVSS: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

Affected packages
PackageAffectedFixed
engine.io
npm
before 3.6.1
3.6.1
engine.io
npm
4.0.0 up to 6.2.1
6.2.1
js-jquery
Azure Linux:3
through 3.5.0-4 None known
engine.io
TuxCare: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.io
TuxCare: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.io
TuxCare: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.io
TuxCare: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.io
TuxCare: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.io
Root:npm
before 4.1.2-root.io.1
4.1.2-root.io.14.1.2-root.io.2
engine.io
Root:npm
before 4.1.2-aikido.2
4.1.2-aikido.2

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE 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

MoveEnter Open