# CVE-2020-7662: Regular Expression Denial of Service in websocket-extensions (NPM package)

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.09%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2020-06-02T18:28:46.000Z
- Modified: 2026-07-08T06:50:02.226Z
- Also known as: GHSA-g78m-2chm-r7qv, SNYK-JS-WEBSOCKETEXTENSIONS-570623
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- websocket-extensions (npm): All versions prior to 0.1.4; before 0.1.4
- websocket-extensions_project websocket-extensions: before 0.1.4

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions> (exploit, third-party-advisory, web)
- <https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623> (exploit, technical-description, third-party-advisory, web)
- <https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7662> (advisory)
- <https://github.com/faye/websocket-extensions-node> (package)

## Sources

- CVE List: [CVE-2020-7662](https://www.cve.org/CVERecord?id=CVE-2020-7662), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-g78m-2chm-r7qv](https://github.com/advisories/GHSA-g78m-2chm-r7qv), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-7662](https://nvd.nist.gov/vuln/detail/CVE-2020-7662), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7662 · Whole record: https://cve.day/CVE-2020-7662.json · Rebuilt by cve.day 2026-11-25T22:57:52.647Z
