socket.io allows an unbounded number of binary attachments
Package
Affected versions
< 3.3.5
>= 3.4.0, < 3.4.4
>= 4.0.0, < 4.2.6
Patched versions
3.3.5
3.4.4
4.2.6
Description
Published to the GitHub Advisory Database
Mar 18, 2026
Reviewed
Mar 18, 2026
Last updated
Mar 18, 2026
Impact
A specially crafted Socket.IO packet can make the server wait for a large number of binary attachments and buffer them, which can be exploited to make the server run out of memory.
Patches
>=4.0.0 <4.2.6socket.io@4.xandsocket.io-client@4.x4.2.6>=3.4.0 <3.4.4socket.io@2.x3.4.4<3.3.5socket.io-client@2.x3.3.5Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
References