Socket
Socket
Sign inDemoInstall

engine.io

Package Overview
Dependencies
17
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.0 to 5.2.1

22

CHANGELOG.md

@@ -0,1 +1,23 @@

## [5.2.1](https://github.com/socketio/engine.io/compare/5.2.0...5.2.1) (2022-01-11)
:warning: This release contains an important security fix :warning:
A malicious client could send a specially crafted HTTP request, triggering an uncaught exception and killing the Node.js process:
> RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear
> at Receiver.getInfo (/.../node_modules/ws/lib/receiver.js:176:14)
> at Receiver.startLoop (/.../node_modules/ws/lib/receiver.js:136:22)
> at Receiver._write (/.../node_modules/ws/lib/receiver.js:83:10)
> at writeOrBuffer (internal/streams/writable.js:358:12)
This bug was introduced by [this commit](https://github.com/socketio/engine.io/commit/f3c291fa613a9d50c924d74293035737fdace4f2), included in `engine.io@4.0.0`, so previous releases are not impacted.
Thanks to Marcus Wejderot from Mevisio for the responsible disclosure.
### Bug Fixes
* properly handle invalid data sent by a malicious websocket client ([66f889f](https://github.com/socketio/engine.io/commit/66f889fc1d966bf5bfa0de1939069153643874ab))
# [5.2.0](https://github.com/socketio/engine.io/compare/5.1.1...5.2.0) (2021-08-29)

@@ -2,0 +24,0 @@

3

lib/server.js

@@ -457,5 +457,2 @@ const qs = require("querystring");

} else {
// transport error handling takes over
websocket.removeListener("error", onUpgradeError);
const closeConnection = (errorCode, errorContext) =>

@@ -462,0 +459,0 @@ abortUpgrade(socket, errorCode, errorContext);

{
"name": "engine.io",
"version": "5.2.0",
"version": "5.2.1",
"description": "The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server",

@@ -5,0 +5,0 @@ "main": "lib/engine.io.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc