{"id":"CVE-2020-7662","published":"2020-06-02T18:28:46Z","modified":"2024-08-04T09:33:20Z","title":"websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking","vendor":null,"product":null,"tier":"tail","description":{"text":"websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03088,"percentile":0.88021,"provenance":"source"},"cwes":[],"references":[{"url":"https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions","tags":["x_refsource_MISC"]},{"url":"https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv","tags":["x_refsource_MISC"]},{"url":"https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.6}]},"affectedVersions":[{"vendor":"n/a","product":"websocket-extensions (npm)","versions":["All versions prior to 0.1.4"]}],"affected":[{"ecosystem":"npm","package":"websocket-extensions","vulnerableRanges":["<0.1.4"],"patched":["0.1.4"],"from":["GHSA-g78m-2chm-r7qv"],"provenance":"source"}],"summary":{"text":"The websocket-extensions npm module prior to version 0.1.4 contains a flaw in its extension parser, which can take quadratic time when handling a header with an unclosed string parameter value made of a repeating backslash and another character. An attacker who can send a crafted Sec-WebSocket-Extensions header to a single-threaded server can trigger regex-based denial of service, since no authentication, user interaction, or special configuration is described as required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:29Z"},"euvd":{"id":"EUVD-2020-0489","exploited":false,"provenance":"source"}}