CVE-2020-7663
Regular Expression Denial of Service in websocket-extensions (RubyGem)
Reported by snyk · Published June 2, 2020
websocket-extensions is fixed in 0.1.5 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| websocket-extensions | RubyGems | 0.1.5 |
| ruby-websocket-extensions | Ubuntu:18.04:LTS | 0.1.2-1+deb9u1build0.18.04.1 |
| websocket-extensions | websocket-extensions_project | 0.1.5 |
| ruby-websocket-extensions | Ubuntu:16.04:LTS | 0.1.2-1+deb9u1build0.16.04.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | websocket-extensions (ruby) | All versions prior to 0.1.5 |
| RubyGems | websocket-extensions | 0 |
| n/a | websocket-extensions (ruby) | * |
Timeline
- Jun 2, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- May 18, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch
- Mar 7, 2026 Security Advisory (3 in total, the first dated here)
- Apr 7, 2026 PoC Published
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7663
vulnetix vdb fixes CVE-2020-7663
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7663/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20200819 [SECURITY] [DLA 2334-1] ruby-websocket-extensions security update mailing-listx_refsource_MLIST
- USN-4502-1 vendor-advisoryx_refsource_UBUNTU
- https://nvd.nist.gov/vuln/detail/CVE-2020-7663 advisory