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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-19T19:45:31.386Z
- Modified: 2026-06-17T06:08:51.600Z
- Also known as: GHSA-hhr9-rh25-hvf9
- Weaknesses: CWE-754
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- feathersjs feathers: < 4.5.18; >= 5.0.0, < 5.0.8; before 4.5.18; from 5.0.0 before 5.0.8
- @feathersjs/socketio (npm): before 4.5.18; from 5.0.0 before 5.0.8
- @feathersjs/transport-commons (npm): before 4.5.18; from 5.0.0 before 5.0.8

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/feathersjs/feathers/security/advisories/GHSA-hhr9-rh25-hvf9> (exploit, vendor-advisory, web)
- <https://github.com/feathersjs/feathers/pull/3241> (patch, web)
- <https://github.com/feathersjs/feathers/pull/3242> (patch, web)
- <https://github.com/feathersjs/feathers/blob/crow/CHANGELOG.md#4518-2023-07-19> (release-notes, web)
- <https://github.com/feathersjs/feathers/blob/dove/CHANGELOG.md#508-2023-07-19> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-37899> (advisory)
- <https://github.com/feathersjs/feathers/commit/0b9a6b19b12ad05934e4c8bd9917448ed39d1ed8> (web)
- <https://github.com/feathersjs/feathers/commit/c397ab3a0cd184044ae4f73540549b30a396821c> (web)
- <https://github.com/feathersjs/feathers> (package)

## Sources

- CVE List: [CVE-2023-37899](https://www.cve.org/CVERecord?id=CVE-2023-37899), CVE Terms of Use, modified 2024-10-28
- GitHub Advisory Database: [GHSA-hhr9-rh25-hvf9](https://github.com/advisories/GHSA-hhr9-rh25-hvf9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-37899](https://nvd.nist.gov/vuln/detail/CVE-2023-37899), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37899 · Whole record: https://cve.day/CVE-2023-37899.json · Rebuilt by cve.day 2026-11-25T22:58:26.047Z
