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

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: Repository: https://github.com/feathersjs/feathers
Blast Radius: 24.5

Affected Packages

npm:@feathersjs/transport-commons
Dependent packages: 57
Dependent 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: 152
Dependent 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