CVE-2020-7662
mediumpriority · track · 31EPSS 0.031 · 88 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–8.2
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (22)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1350Splunk Splunk Enterprise: Mehrere Schwachstellen in Komponenten von DrittanbieternDeutsch2023-06-01csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Splunk Splunk Enterprise in diversen Komponenten von Drittanbietern ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
- WID-SEC-W-2026-0777Red Hat OpenShift: Mehrere SchwachstellenDeutsch2020-07-01csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um einen Denial of Service Angriff durchzuführen, einen Cross-Site-Scripting-Angriff durchzuführen, beliebigen Programmcode auszuführen, oder Auswirkungen hinsichtlich der Vertraulichkeit, Verfügbarkeit und Integrität zu verursachen.
- GHSA-g78m-2chm-r7qvRegular Expression Denial of Service in websocket-extensions (NPM package)2020-06-05ghsa · osvUS
### 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 - https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions/
also known as (4)
Other names and identifiers for this entity.
- CNNVD-202006-271cnnvd
- EUVD-2020-0489enisa_euvd
- GHSA-g78m-2chm-r7qvenisa_euvd
- SNYK-JS-WEBSOCKETEXTENSIONS-570623osv
sources
Which sources assert this record, and when.
references (21)
External citations — patches, advisories, analysis.
- http://www.nsfocus.net/vulndb/48836cnnvd
- https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensionscnnvd
- https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237cnnvd
- https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qvcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-7662cnnvd
- https://packetstormsecurity.com/files/158278/Red-Hat-Security-Advisory-2020-2796-01.htmlcnnvd
- https://packetstormsecurity.com/files/158363/Red-Hat-Security-Advisory-2020-2861-01.htmlcnnvd
- https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan