OSV 1.4.0 · github-reviewed · 修改于 2020-09-01 02:12
发布时间
2020-09-02 00:02
GitHub 审查时间
2020-09-01 02:12
NVD 发布时间
—
源文件
advisories/github-reviewed/2020/09/GHSA-hf5h-hh56-3vrg/GHSA-hf5h-hh56-3vrg.json
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.
Update to version 0.10.9 or later.
Alternatively, disable permessage-deflate.