{"id":"GHSA-hf5h-hh56-3vrg","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.\n\nIf `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.\n\n\n## Recommendation\n\nUpdate to version 0.10.9 or later.\n\nAlternatively, disable `permessage-deflate`.","aliases":["CVE-2016-10544"],"modified":"2023-11-01T04:46:35.182370Z","published":"2020-09-01T16:02:29Z","database_specific":{"github_reviewed_at":"2020-08-31T18:12:32Z","nvd_published_at":null,"cwe_ids":["CWE-400"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10544"},{"type":"WEB","url":"https://github.com/uWebSockets/uWebSockets/commit/37deefd01f0875e133ea967122e3a5e421b8fcd9"},{"type":"WEB","url":"https://www.npmjs.com/advisories/149"}],"affected":[{"package":{"name":"uws","ecosystem":"npm","purl":"pkg:npm/uws"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.10.0"},{"fixed":"0.10.9"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.10.8","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-hf5h-hh56-3vrg/GHSA-hf5h-hh56-3vrg.json"}}],"schema_version":"1.9.0"}