ThinkFacility Sign in
  1. Home
  2. Security
  3. npm package (engine.io)
Highnpm package (engine.io)

Engine.IO before 6.6.12: one dropped connection can crash a Socket.IO server, update now

Developers running a Socket.IO or Engine.IO server in Node.js.

How to fix it

You haveUpdate to
< 6.6.12→6.6.12

Check your version

Which version your project has
npm ls engine.io

Update

In your project
npm update engine.io
npm ls engine.io
Still old? A dependency pins it
npm explain engine.io
Then check what's left
npm audit

If you can't update yet

Register a listener for the error event on every upgrade socket, in a server.on("upgrade") handler added before engine.attach(server). The maintainers call this a temporary mitigation and recommend updating.

Engine.IO is the transport under the Socket.IO server, so most Socket.IO apps pull it in. Anyone on the internet can crash the Node.js process with one upgrade request to the wrong path, dropped before a one-second timeout. No login is needed.

If npm ls still shows an old version under another package, update that package, or add an "overrides" entry for this one in package.json.

Sources