@feathersjs/socketio
Affected
- introduced
0, fixed4.5.18(semver)
Fixed versions
4.5.18
Fix
- Fixed version
4.5.18npm install @feathersjs/[email protected]
Advisory
Also known as: CVE-2023-37899
Feathers socket handler allows abusing implicit toString
Impact
Feathers socket handler did not catch invalid string conversion errors like:
const message = `${{ toString: '' }}`
Causing the NodeJS process to crash when sending an unexpected Socket.io message like
socket.emit('find', { toString: '' })
Patches
A fix has been released in
v5.0.8 via #3241v4.5.18 via #3242Workarounds
Since it is in the core Socket handling code upgrading to the latest version is necessary.
References
High Basis: The source's own band: HIGH
0, fixed 4.5.18 (semver)4.5.18
4.5.18npm install @feathersjs/[email protected]5.0.0, fixed 5.0.8 (semver)5.0.8
5.0.8npm install @feathersjs/[email protected]0, fixed 4.5.18 (semver)4.5.18
4.5.18npm install @feathersjs/[email protected]5.0.0, fixed 5.0.8 (semver)5.0.8
5.0.8npm install @feathersjs/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0