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.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)3.1%top 12.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmwebsocket-extensions0.1.4GHSA-g78m-2chm-r7qv

Affected products (as reported)

VendorProductVersions
n/a websocket-extensions (npm) All versions prior to 0.1.4

References