GHSA-2m8v-j782-fhvr: Input Validation
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
| Version range | Used by | Fixed version | |------------------|--------------------------------------------|---------------| | >=4.0.0 <4.2.7 | socket.io@4.x and socket.io-client@4.x | 4.2.7 | | >=3.4.0 <3.4.5 | socket.io@2.x | 3.4.5 | | <3.3.6 | socket.io-client@2.x | 3.3.6 |
Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
- Open a discussion here
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/socket.io-parserto a version that resolves this vulnerability.Fixed in 3.3.6 - Upgrade
Upgrade
npm/socket.io-parserto a version that resolves this vulnerability.Fixed in 3.4.5 - Upgrade
Upgrade
npm/socket.io-parserto a version that resolves this vulnerability.Fixed in 4.2.7 - Upgrade
Upgrade
socket.ioto a version that resolves this vulnerability.Fixed in 3.3.6 - Upgrade
Upgrade
socket.ioto a version that resolves this vulnerability.Fixed in 3.4.5 - Upgrade
Upgrade
socket.ioto a version that resolves this vulnerability.Fixed in 4.2.7
Event History
Frequently Asked Questions
What is the severity of GHSA-2m8v-j782-fhvr?
The severity of GHSA-2m8v-j782-fhvr is high, rated at 7.5.
What is the impact of GHSA-2m8v-j782-fhvr?
GHSA-2m8v-j782-fhvr can cause the server to run out of memory due to excessive buffering of binary attachments from specially crafted Socket.IO packets.
How do I fix GHSA-2m8v-j782-fhvr?
To fix GHSA-2m8v-j782-fhvr, upgrade to the fixed version of the socket.io-parser library.
Which versions are affected by GHSA-2m8v-j782-fhvr?
GHSA-2m8v-j782-fhvr affects specific versions of the npm/socket.io-parser, which need to be identified in the advisory.
What type of vulnerability is GHSA-2m8v-j782-fhvr categorized as?
GHSA-2m8v-j782-fhvr is categorized as an Input Validation vulnerability.