feathersjs socket handler allows abusing implicit toString
feathersjs feathers
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @feathersjs/socketio npm |
|
|
| @feathersjs/transport-commons npm |
|
feathersjs feathers
| Product | Affected | Fixed in |
|---|---|---|
| @feathersjs/socketio npm |
|
|
| @feathersjs/transport-commons npm |
|
|
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.
From the CVE record · GitHub_M
The Feathers socket handler does not catch errors from invalid string conversion. An attacker who can send an unexpected Socket.io message can crash the Node.js process. The input does not specify whether authentication or user interaction is required.
Check Feathersjs installations using npm @feathersjs/socketio or @feathersjs/transport-commons versions below 4.5.18, or versions 5.0.0 through 5.0.7.