Every CVE Search/ Get API key

CVE-2020-7662

Regular Expression Denial of Service in websocket-extensions (NPM package)

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

3.09%Up 1.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2020-7662
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2020-7662
Updated
2026-11-02
EUVDEUVD-2020-0489 No score

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.

Record
EUVD-2020-0489
Updated
2026-11-03
GitHub AdvisoriesGHSA-g78m-2chm-r7qv 8.2

Regular Expression Denial of Service in websocket-extensions (NPM package)

Impact

The ReDoS flaw allows an attacker to exhaust the server's capacity to process incoming requests by sending a WebSocket handshake request containing a header of the following form:

Sec-WebSocket-Extensions: a; b="\c\c\c\c\c\c\c\c\c\c ...

That is, a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. The parser takes exponential time to reject this header as invalid, and this will block the processing of any other work on the same thread. Thus if you are running a single-threaded server, such a request can render your service completely unavailable.

Patches

Users should upgrade to version 0.1.4.

Workarounds

There are no known work-arounds other than disabling any public-facing WebSocket functionality you are operating.

References

Record
GHSA-g78m-2chm-r7qv
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-400
Updated
2026-11-02
OSVAZL-44202 7.5

CVE-2020-7662 affecting package js-jquery 3.5.0-4

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.

Record
AZL-44202
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-05
OSV 7.5

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.

Record
CVE-2020-7662
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVGHSA-g78m-2chm-r7qv 8.2

Regular Expression Denial of Service in websocket-extensions (NPM package)

Impact

The ReDoS flaw allows an attacker to exhaust the server's capacity to process incoming requests by sending a WebSocket handshake request containing a header of the following form:

Sec-WebSocket-Extensions: a; b="\c\c\c\c\c\c\c\c\c\c ...

That is, a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. The parser takes exponential time to reject this header as invalid, and this will block the processing of any other work on the same thread. Thus if you are running a single-threaded server, such a request can render your service completely unavailable.

Patches

Users should upgrade to version 0.1.4.

Workarounds

There are no known work-arounds other than disabling any public-facing WebSocket functionality you are operating.

References

Record
GHSA-g78m-2chm-r7qv
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-400
Updated
2026-11-02
OSVRHSA-2020:2796 8.2

Red Hat Security Advisory: Red Hat OpenShift Service Mesh servicemesh-grafana security update

Record
RHSA-2020:2796
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02
OSVRHSA-2020:2861 8.2

Red Hat Security Advisory: Red Hat OpenShift Service Mesh 1.0 servicemesh-grafana security update

Record
RHSA-2020:2861
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1773188138 No score

TuxCare security update for websocket-extensions (1 CVE)

TuxCare rebuilt websocket-extensions to address 1 CVE. Fixed in 0.1.1-tuxcare.3.

Record
CLSA-2026-1773188138
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
websocket-extensions
npm
before 0.1.4
0.1.4
js-jquery
Azure Linux:3
through 3.5.0-4 None known
websocket-extensions
TuxCare:npm
0.1.1-tuxcare.0 up to 0.1.1-tuxcare.3, plus listed versions
0.1.10.1.1-tuxcare.10.1.1-tuxcare.2
0.1.1-tuxcare.3
servicemesh-grafana
Red Hat:service_mesh:1.1::el8
From an advisory covering 8 CVEs
before 0:6.4.3-11.el8
0:6.4.3-11.el8
servicemesh-grafana-prometheus
Red Hat:service_mesh:1.1::el8
From an advisory covering 8 CVEs
before 0:6.4.3-11.el8
0:6.4.3-11.el8
servicemesh-grafana
Red Hat:service_mesh:1.0::el8
From an advisory covering 7 CVEs
before 0:6.2.2-38.el8
0:6.2.2-38.el8
servicemesh-grafana-prometheus
Red Hat:service_mesh:1.0::el8
From an advisory covering 7 CVEs
before 0:6.2.2-38.el8
0:6.2.2-38.el8

History

History
RecordedChangedSources
affected
factsOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-7662 is a high vulnerability (CVSS 7.5) in Websocket-extensions Project Websocket-extensions, published June 2, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.09%, the 87th percentile. Fixed in websocket-extensions 0.1.4.

References

Show 40 moreShow less
MoveEnter Open