Advisory

GHSA-hf5h-hh56-3vrg

Also known as: CVE-2016-10544

Summary

Denial of Service in uws

Details

Affected versions of uws do not properly handle large websocket messages when permessage-deflate is enabled, which may result in a denial of service condition.

If uws recieves a 256Mb websocket message when permessage-deflate is enabled, the server will compress the message prior to executing the length check, and subsequently extract the message prior to processing. This can result in a situation where an excessively large websocket message passes the length checks, yet still gets cast from a Buffer to a string, which will exceed v8's maximum string size and crash the process.

Recommendation

Update to version 0.10.9 or later.

Alternatively, disable permessage-deflate.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-01 16:02 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

uws

npm · All systems

Affected

  • introduced 0.10.0, fixed 0.10.9 (semver)

Fixed versions

0.10.9

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