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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/feathersjs/feathers/security/advisories/GHSA-hhr9-rh25-hvf9 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/feathersjs/feathers/pull/3241 patch
- https://github.com/feathersjs/feathers/pull/3242 patch
- github.com patch
- github.com patch
- https://github.com/feathersjs/feathers/blob/crow/CHANGELOG.md#4518-2023-07-19 release-notes
- https://github.com/feathersjs/feathers/blob/dove/CHANGELOG.md#508-2023-07-19 release-notes
- github.com
- github.com product