Sourced from engine.io's releases.
6.4.2
: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:
TypeError: Cannot read properties of undefined (reading 'handlesUpgrades') at Server.onWebSocket (build/server.js:515:67)Please upgrade as soon as possible.
Bug Fixes
- include error handling for Express middlewares (#674) (9395782)
- prevent crash when provided with an invalid query param (fc480b4)
- typings: make clientsCount public (#675) (bd6d471)
- uws: prevent crash when using with middlewares (8b22162)
Credits
Huge thanks to
@tyiloand@cieldevillefor helping!Links
- Diff: https://github.com/socketio/engine.io/compare/6.4.1...6.4.2
- Client release: -
- ws version: ~8.11.0 (no change)
Sourced from engine.io's changelog.
6.4.2 (2023-05-02)
: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:
TypeError: Cannot read properties of undefined (reading 'handlesUpgrades') at Server.onWebSocket (build/server.js:515:67)Please upgrade as soon as possible.
Bug Fixes
- include error handling for Express middlewares (#674) (9395782)
- prevent crash when provided with an invalid query param (fc480b4)
- typings: make clientsCount public (#675) (bd6d471)
- uws: prevent crash when using with middlewares (8b22162)
Credits
Huge thanks to
@tyiloand@cieldevillefor helping!Dependencies
ws@~8.11.0(no change)
95e2153
chore(release): 6.4.2fc480b4
fix: prevent crash when provided with an invalid query param0141951
refactor(types): ensure compatibility with Express middlewares8b22162
fix(uws): prevent crash when using with middlewares9395782
fix: include error handling for Express middlewares (#674)911d0e3
refactor: return HTTP 400 upon invalid request overlapbd6d471
fix(typings): make clientsCount public (#675)