Description
uws is a WebSocket server library. By sending a 256mb websocket message to a uws server instance with permessage-deflate enabled, there is a possibility used compression will shrink said 256mb down to less than 16mb of websocket payload which passes the length check of 16mb payload. This data will then inflate up to 256mb and crash the node process by exceeding V8's maximum string size. This affects uws >=0.10.0 <=0.10.8.
Remediation
References
https://github.com/uWebSockets/uWebSockets/commit/37deefd01f0875e133ea967122e3a5e421b8fcd9
https://nodesecurity.io/advisories/149
Related Vulnerabilities
CVE-2020-1940 Vulnerability in maven package org.apache.jackrabbit:oak-core
CVE-2021-32702 Vulnerability in npm package nextjs-auth0
CVE-2016-7103 Vulnerability in maven package org.fujion.webjars:jquery-ui
CVE-2021-41251 Vulnerability in npm package @sap-cloud-sdk/core
CVE-2021-26544 Vulnerability in maven package org.apache.livy:livy-server