# CVE-2020-7663: Regular Expression Denial of Service in websocket-extensions (RubyGem)

- 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): 4.64%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-02T18:25:01.000Z
- Modified: 2026-07-08T06:50:03.986Z
- Also known as: GHSA-g6wq-qcwm-j5g2, SNYK-RUBY-WEBSOCKETEXTENSIONS-570830
- Weaknesses: CWE-400
- Assigned by: snyk

## Description

websocket-extensions ruby module prior to 0.1.5 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 (ruby): All versions prior to 0.1.5
- websocket-extensions (RubyGems): before 0.1.5
- websocket-extensions_project websocket-extensions: before 0.1.5
- debian debian_linux: 9.0
- canonical ubuntu_linux: 16.04; 18.04; 20.04

## 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://snyk.io/vuln/SNYK-RUBY-WEBSOCKETEXTENSIONS-570830> (exploit, third-party-advisory, web)
- <https://github.com/faye/websocket-extensions-ruby/security/advisories/GHSA-g6wq-qcwm-j5g2> (third-party-advisory, web)
- <https://github.com/faye/websocket-extensions-ruby/commit/aa156a439da681361ed6f53f1a8131892418838b> (patch, third-party-advisory, web)
- <https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/08/msg00031.html> (mailing-list, third-party-advisory, web)
- <https://usn.ubuntu.com/4502-1/> (third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7663> (advisory)
- <https://github.com/faye/websocket-extensions-ruby> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/websocket-extensions/CVE-2020-7663.yml> (web)
- <https://usn.ubuntu.com/4502-1> (web)

## Sources

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

---

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