Advisory

GHSA-hhr9-rh25-hvf9

Also known as: CVE-2023-37899

Summary

Feathers socket handler allows abusing implicit toString

Details

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 #3241
  • v4.5.18 via #3242

Workarounds

Since it is in the core Socket handling code upgrading to the latest version is necessary.
References

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-20 14:54 UTC
Modified
2023-11-08 04:13 UTC

Affected packages and fixes

@feathersjs/socketio

npm · All systems

Affected

  • introduced 0, fixed 4.5.18 (semver)

Fixed versions

4.5.18

Fix

@feathersjs/socketio

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.0.8 (semver)

Fixed versions

5.0.8

Fix

@feathersjs/transport-commons

npm · All systems

Affected

  • introduced 0, fixed 4.5.18 (semver)

Fixed versions

4.5.18

Fix

@feathersjs/transport-commons

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.0.8 (semver)

Fixed versions

5.0.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences