Vulnerability GHSA-r7qp-cfhv-p84w
Medium Risk
MEDIUM RISK
CVSS Score: 6.5
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 years ago
November 21, 2022 at 11:55 PM UTC
Uncaught exception in engine.io
<3.6.1, >=4.0.0 <6.2.1
<3.6.1, >=4.0.0 <6.2.1
Summary
Uncaught exception in engine.io
Details
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.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
6 hours ago
Socket.IO: Engine.IO DoS via unhandled upgrade error
<6.6.12 GHSA-v775-f652-7rv6
<6.6.12 GHSA-v775-f652-7rv6
High Risk
2 months ago
Socket.IO: Engine.IO Protocol Revision Mismatch DoS
>=6.6.0 <6.6.10 GHSA-2gc4-cqfq-p2gv
>=6.6.0 <6.6.10 GHSA-2gc4-cqfq-p2gv
High Risk
3 months ago
Socket.IO: Engine.IO WebTransport SID DoS
>=6.5.0 <6.6.7 GHSA-gr94-w7qr-f4j3
>=6.5.0 <6.6.7 GHSA-gr94-w7qr-f4j3
High Risk
4 months ago
Socket.IO: Engine.IO Polling Transport Connection Exhaustion
>=4.1.0 <6.6.7 GHSA-r635-g3xr-vw7x
>=4.1.0 <6.6.7 GHSA-r635-g3xr-vw7x
Medium Risk
3 years ago
engine.io Uncaught Exception vulnerability
>=5.1.0 <6.4.2 GHSA-q9mw-68c2-j6m5
>=5.1.0 <6.4.2 GHSA-q9mw-68c2-j6m5
Impacted packages
Timeline
Published
4 years ago
November 21, 2022 at 11:55 PM UTC
Fixed (6.2.1)
4 years ago
November 20, 2022 at 01:16 AM UTC
Fixed (3.6.1)
4 years ago
November 20, 2022 at 01:26 AM UTC
Last Modified
3 years ago
November 08, 2023 at 04:10 AM UTC