Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed in
npm websocket-extensions(npm) < 0.1.4 0.1.4
websocket-extensions project websocket-extensions < 0.1.4 0.1.4

References