{"id":"CVE-2023-37899","aliases":["CVE-2023-37899","GHSA-hhr9-rh25-hvf9"],"related":[],"kind":"vulnerability","state":"published","title":"feathersjs socket handler allows abusing implicit toString","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nFeathers socket handler did not catch invalid string conversion errors like:\n\n```ts\nconst message = `${{ toString: '' }}`\n```\n\nCausing the NodeJS process to crash when sending an unexpected Socket.io message like\n\n```ts\nsocket.emit('find', { toString: '' })\n```\n\n### Patches\n\nA fix has been released in\n\n- `v5.0.8` via #3241\n- `v4.5.18` via #3242\n\n### Workarounds\n\nSince it is in the core Socket handling code upgrading to the latest version is necessary.\n### References\n\n- [v5.0.8 Changelog](https://github.com/feathersjs/feathers/blob/dove/CHANGELOG.md#508-2023-07-19)\n- [v4.5.18 Changelog](https://github.com/feathersjs/feathers/blob/crow/CHANGELOG.md#4518-2023-07-19)","format":"markdown","source":"ghsa"}],"published":"2023-07-19T19:45:31.386Z","modified":"2026-06-17T06:08:51.600Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"version":"< 4.5.18","status":"affected"},{"version":">= 5.0.0, < 5.0.8","status":"affected"}],"vendor":"feathersjs","product":"feathers","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.18"}],"ecosystem":"npm","package":"@feathersjs/socketio","purl":"pkg:npm/%40feathersjs/socketio","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.8"}],"ecosystem":"npm","package":"@feathersjs/socketio","purl":"pkg:npm/%40feathersjs/socketio","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.18"}],"ecosystem":"npm","package":"@feathersjs/transport-commons","purl":"pkg:npm/%40feathersjs/transport-commons","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.8"}],"ecosystem":"npm","package":"@feathersjs/transport-commons","purl":"pkg:npm/%40feathersjs/transport-commons","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.5.18"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.8"}],"vendor":"feathersjs","product":"feathers","cpe":"cpe:2.3:a:feathersjs:feathers:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/feathersjs/feathers/security/advisories/GHSA-hhr9-rh25-hvf9","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/pull/3241","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/pull/3242","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/blob/crow/CHANGELOG.md#4518-2023-07-19","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/blob/dove/CHANGELOG.md#508-2023-07-19","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37899","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/feathersjs/feathers/commit/0b9a6b19b12ad05934e4c8bd9917448ed39d1ed8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/feathersjs/feathers/commit/c397ab3a0cd184044ae4f73540549b30a396821c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/feathersjs/feathers","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-10-28T15:11:51.616Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-37899","url":"https://www.cve.org/CVERecord?id=CVE-2023-37899","licence":"CVE Terms of Use","modified":"2024-10-28T15:12:04.645Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hhr9-rh25-hvf9","url":"https://github.com/advisories/GHSA-hhr9-rh25-hvf9","licence":"CC-BY-4.0","modified":"2023-11-08T04:13:03.762Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-37899","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37899","licence":"Public domain","modified":"2026-06-17T06:08:51.600Z"}],"updatedAt":"2026-11-25T22:58:26.047Z","epss":{"score":0.01188,"percentile":0.68774,"date":"2026-12-01T12:00:22.000Z"}}