CVE-2020-7662 Regular Expression Denial of Service in websocket-extensions (NPM package)
HighCVSS 7.5
EPSS 3.1%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm websocket-extensions(npm) | < 0.1.4 | 0.1.4 | Fixed |
| websocket-extensions project websocket-extensions | < 0.1.4 | 0.1.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm websocket-extensions(npm) | < 0.1.4 | 0.1.4 |
| websocket-extensions project websocket-extensions | < 0.1.4 | 0.1.4 |
References
- github.com exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- blog.jcoglan.com exploit third-party-advisory
- snyk.io exploit technical-description third-party-advisory
- github.com
- github.com product