CVE-2020-7662websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take…
- 7.5HighCVSS base score
- 3.1%Exploitation in 30 daysEPSS · top 12% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By snyk
- 4 months later
· 4 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 3.1% · top 12% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
websocket-extensions (npm)
- affected All versions prior to 0.1.4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmwebsocket-extensionsGHSA-g78m-2chm-r7qv (opens in a new tab)
References
References4
- https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-0489 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g78m-2chm-r7qv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-7662)Record last updated .