PT-2020-19690 · Npm · Websocket-Extensions

Published

2020-06-02

·

Updated

2020-12-23

·

CVE-2020-7662

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions websocket-extensions npm module versions prior to 0.1.4
Description The issue allows for Denial of Service (DoS) via Regex Backtracking. An attacker can exploit this by sending a malicious payload with the Sec-WebSocket-Extensions header, causing the extension parser to take quadratic time when parsing a header containing an unclosed string parameter value. This could lead to exhausting the server's capacity to process incoming requests, rendering the service completely unavailable, especially on single-threaded servers.
Recommendations For versions prior to 0.1.4, upgrade to version 0.1.4 to resolve the issue. As a temporary workaround, consider disabling any public-facing WebSocket functionality until the upgrade is applied.

Exploit

Fix

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-44202
CVE-2020-7662
GHSA-G78M-2CHM-R7QV
RHSA-2020:2796
RHSA-2020:2861
SNYK-JS-WEBSOCKETEXTENSIONS-570623

Affected Products

Websocket-Extensions