CVE-2020-7662
Regular Expression Denial of Service in websocket-extensions (NPM package)
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
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 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
websocket-extensionsnpm |
before 0.1.4 | 0.1.4 |
js-jqueryAzure Linux:3 |
through 3.5.0-4 | None known |
websocket-extensionsTuxCare: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-grafanaRed 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-prometheusRed 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-grafanaRed 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-prometheusRed 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
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE 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
blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions
github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv
github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237
snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623
nvd.nist.gov/vuln/detail/CVE-2020-7662
github.com/advisories/GHSA-g78m-2chm-r7qv
Show 40 moreShow less
github.com/faye/websocket-extensions-node
access.redhat.com/errata/RHSA-2020:2796
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1757701
bugzilla.redhat.com/show_bug.cgi?id=1843640
bugzilla.redhat.com/show_bug.cgi?id=1844228
bugzilla.redhat.com/show_bug.cgi?id=1845982
bugzilla.redhat.com/show_bug.cgi?id=1848089
bugzilla.redhat.com/show_bug.cgi?id=1848092
bugzilla.redhat.com/show_bug.cgi?id=1848108
bugzilla.redhat.com/show_bug.cgi?id=1848643
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_2796.json
access.redhat.com/security/cve/CVE-2019-11253
cve.org/CVERecord?id=CVE-2019-11253
nvd.nist.gov/vuln/detail/CVE-2019-11253
stackrox.com/post/2019/09/protecting-kubernetes-api-against-cve-2019-11253-billion-laughs-attack
access.redhat.com/security/cve/CVE-2019-16769
cve.org/CVERecord?id=CVE-2019-16769
nvd.nist.gov/vuln/detail/CVE-2019-16769
access.redhat.com/security/cve/CVE-2020-7660
cve.org/CVERecord?id=CVE-2020-7660
nvd.nist.gov/vuln/detail/CVE-2020-7660
access.redhat.com/security/cve/CVE-2020-7662
cve.org/CVERecord?id=CVE-2020-7662
access.redhat.com/security/cve/CVE-2020-12052
cve.org/CVERecord?id=CVE-2020-12052
nvd.nist.gov/vuln/detail/CVE-2020-12052
access.redhat.com/security/cve/CVE-2020-12245
cve.org/CVERecord?id=CVE-2020-12245
nvd.nist.gov/vuln/detail/CVE-2020-12245
access.redhat.com/security/cve/CVE-2020-13379
cve.org/CVERecord?id=CVE-2020-13379
nvd.nist.gov/vuln/detail/CVE-2020-13379
grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-security-fix
openwall.com/lists/oss-security/2020/06/09/2
access.redhat.com/security/cve/CVE-2020-13430
cve.org/CVERecord?id=CVE-2020-13430
nvd.nist.gov/vuln/detail/CVE-2020-13430
access.redhat.com/errata/RHSA-2020:2861
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_2861.json