Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1oaHI5LXJoMjUtaHZmOc4AA00L
Feathers socket handler allows abusing implicit toString
Impact
Feathers socket handler did not catch invalid string conversion errors like:
const message = `${{ toString: '' }}`
Causing the NodeJS process to crash when sending an unexpected Socket.io message like
socket.emit('find', { toString: '' })
Patches
A fix has been released in
v5.0.8
via #3241v4.5.18
via #3242
Workarounds
Since it is in the core Socket handling code upgrading to the latest version is necessary.
References Permalink: https://github.com/advisories/GHSA-hhr9-rh25-hvf9
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oaHI5LXJoMjUtaHZmOc4AA00L
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 10 months ago
Updated: 6 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-hhr9-rh25-hvf9, CVE-2023-37899
References:
- https://github.com/feathersjs/feathers/security/advisories/GHSA-hhr9-rh25-hvf9
- https://nvd.nist.gov/vuln/detail/CVE-2023-37899
- https://github.com/feathersjs/feathers/pull/3241
- https://github.com/feathersjs/feathers/pull/3242
- https://github.com/feathersjs/feathers/commit/0b9a6b19b12ad05934e4c8bd9917448ed39d1ed8
- https://github.com/feathersjs/feathers/commit/c397ab3a0cd184044ae4f73540549b30a396821c
- 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
- https://github.com/advisories/GHSA-hhr9-rh25-hvf9
Blast Radius: 24.5
Affected Packages
npm:@feathersjs/transport-commons
Dependent packages: 57Dependent repositories: 1,823
Downloads: 171,726 last month
Affected Version Ranges: >= 5.0.0, <= 5.0.7, <= 4.5.17
Fixed in: 5.0.8, 4.5.18
All affected versions: 3.2.0, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.7, 4.3.10, 4.3.11, 4.4.0, 4.4.1, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.5.5, 4.5.7, 4.5.8, 4.5.9, 4.5.10, 4.5.11, 4.5.12, 4.5.14, 4.5.15, 4.5.16, 4.5.17, 5.0.0, 5.0.1, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7
All unaffected versions: 4.5.18, 5.0.8, 5.0.9, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.15, 5.0.16, 5.0.17, 5.0.18, 5.0.19, 5.0.20, 5.0.21, 5.0.22, 5.0.23, 5.0.24
npm:@feathersjs/socketio
Dependent packages: 152Dependent repositories: 1,393
Downloads: 76,380 last month
Affected Version Ranges: >= 5.0.0, <= 5.0.7, <= 4.5.17
Fixed in: 5.0.8, 4.5.18
All affected versions: 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.7, 4.3.10, 4.3.11, 4.4.0, 4.4.1, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 4.5.5, 4.5.6, 4.5.7, 4.5.8, 4.5.9, 4.5.10, 4.5.11, 4.5.12, 4.5.13, 4.5.14, 4.5.15, 4.5.16, 4.5.17, 5.0.0, 5.0.1, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7
All unaffected versions: 4.5.18, 5.0.8, 5.0.9, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.15, 5.0.16, 5.0.17, 5.0.18, 5.0.19, 5.0.20, 5.0.21, 5.0.22, 5.0.23, 5.0.24