Vulnerability · Published Jun 2, 2020 · Assigned by snyk
CVE-2020-7662
High 7.5
In plain English
A high-severity security flaw in websocket-extensions (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | websocket-extensions | 0.1.4 | GHSA-g78m-2chm-r7qv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | websocket-extensions (npm) | All versions prior to 0.1.4 |
References
- https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions x_refsource_MISC
- https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv x_refsource_MISC
- https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623 x_refsource_MISC