socket.io
4.8.4 · 25 Sep 2026MIT16.6M / weekRepositoryHomepagenpmAtom feed
Upgrading socket.io from 0.6.7 to 2.5.1
98 releases in betweennotes for 18
Counted from 18 of 98 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- breaking2.4.1
- breaking2.0.0
Security
Fixes 3 advisories affecting 0.6.7
- socket.io has an unhandled 'error' eventmoderate · GHSA-25hc-qcg6-38wj
- CORS misconfiguration in socket.iomoderate · GHSA-fxwf-4rqh-v8g3
- Insecure randomness in socket.iohigh · GHSA-qv2v-m59f-v5fw
- 2.5.0
Security advisory: github.com/advisories/GHSA-j4f2-536g-r55m
- 2.4.1
In any case, please consider upgrading to Socket.IO v3, where this security issue is now fixed (CORS is disabled by default).
Release by release
- new
Add a noop handler for the error event
- fixed
Diff: 2.5.0...2.5.1
- fixed
Client release:
- - fixed
Engine.io version:
~3.6.0(no change) - fixed
Ws version:
~7.5.10
- new
- fixed
Fix race condition in dynamic namespaces
- fixed
Ignore packet received after disconnection
- fixed
Only set 'connected' to true after middleware execution
- fixed
Prevent the socket from joining a room after disconnection
- fixed
- fixed
security: Do not allow all origins by default
- fixed
- new
Add support for all cookie options
- new
Disable perMessageDeflate by default
- fixed
Properly overwrite the query sent in the handshake
- fixed
You are using Socket.IO v2 and the
originsoption to restrict the list of allowed domains
- new
2.3.0nothing new or fixed in the note
- new
Add cache-control header when serving the client source
- fixed
Throw an error when trying to access the clients of a dynamic namespace
- fixed
Milestone: 2.2.0
- fixed
Diff: 2.1.1...2.2.0
- fixed
Client release: 2.2.0
- fixed
Engine.io version:
~3.3.1(diff: 3.2.0...3.3.1) - fixed
Ws version:
~6.1.0(diff: 3.3.1...6.1.2)
- new
- new
Add local flag to the socket object (#3219)
- fixed
Milestone: 2.1.1
- fixed
Diff: 2.1.0...2.1.1
- fixed
Client release: 2.1.1
- fixed
Engine.io version:
~3.2.0 - fixed
Ws version:
~3.3.1
- new
- new
Add a 'binary' flag
- new
Add support for dynamic namespaces
- fixed
Properly emit 'connect' when using a custom namespace
- fixed
Include the protocol in the origins check
- new
25 other lines we could not sort, mostly version bumps
- 2.4.1
Without CORS (server and client are served from the same domain):
- 2.4.1
With CORS (server and client are served from distinct domains):
- 2.4.1
Diff: 2.4.0...2.4.1
- 2.4.1
Client release:
- 2.1.0
wswas reverted as the default wsEngine (#550), as there was several blocking issues withuws. You can still useuwsby runningnpm install uws --savein your project and using thewsEngineoption: - 2.1.0
pingTimeoutnow defaults to 5 seconds (instead of 60 seconds): #551 - 2.1.0
Diff: 2.0.4...2.1.0
- 2.1.0
Client release: 2.1.0
- 2.1.0
Engine.io version:
~3.2.0(diff: 3.1.0...3.2.0) - 2.1.0
Ws version:
~3.3.1(diff: 2.3.1...3.3.1)
55 internal lines (docs, tests, tooling) left out.