Skip to content

CVE-2023-37899 feathersjs socket handler allows abusing implicit toString

HighCVSS 7.5 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. Feathers socket handler did not catch invalid string conversion errors like const message = ${{ toString: '' }} which would cause the NodeJS process to crash when sending an unexpected Socket.io message like socket.emit('find', { toString: '' }). A fix has been released in versions 5.0.8 and 4.5.18. Users are advised to upgrade. There is no known workaround for this vulnerability.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
feathersjs @feathersjs/socketio(npm) < 4.5.18; <= 4.5.17; >= 5.0.0, < 5.0.8; >= 5.0.0, <= 5.0.7 4.5.18, 5.0.8 Fixed
feathersjs @feathersjs/transport-commons(npm) < 4.5.18; <= 4.5.17; >= 5.0.0, < 5.0.8; >= 5.0.0, <= 5.0.7 4.5.18, 5.0.8 Fixed
feathersjs feathers < 4.5.18; = < 4.5.18; = >= 5.0.0, < 5.0.8; >= 5.0.0, < 5.0.8 4.5.18, 5.0.8 Fixed

Affected products

ProductAffected versionsFixed in
feathersjs @feathersjs/socketio(npm) <= 4.5.17 No fix listed
feathersjs @feathersjs/socketio(npm) >= 5.0.0, <= 5.0.7 No fix listed
feathersjs @feathersjs/transport-commons(npm) <= 4.5.17 No fix listed
feathersjs @feathersjs/transport-commons(npm) >= 5.0.0, <= 5.0.7 No fix listed
feathersjs feathers = < 4.5.18 No fix listed
feathersjs feathers = >= 5.0.0, < 5.0.8 No fix listed
feathersjs feathers < 4.5.18 4.5.18
feathersjs feathers >= 5.0.0, < 5.0.8 5.0.8
feathersjs @feathersjs/socketio(npm) < 4.5.18 4.5.18
feathersjs @feathersjs/socketio(npm) >= 5.0.0, < 5.0.8 5.0.8
feathersjs @feathersjs/transport-commons(npm) < 4.5.18 4.5.18
feathersjs @feathersjs/transport-commons(npm) >= 5.0.0, < 5.0.8 5.0.8

References