Regular Expression Denial of Service (ReDoS)
Description
All versions of package dat.gui are vulnerable to Regular Expression Denial of Service (ReDoS) via specifically crafted rgb and rgba values.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
dat.gui vulnerable to Regular Expression Denial of Service (ReDoS) via crafted rgb/rgba color strings.
The dat.gui library is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to flawed regular expressions used to parse CSS color values [1]. Specifically, the regex for rgb and rgba colors contains nested quantifiers (e.g., \s*(.+)\s*) that can cause catastrophic backtracking when processing specially crafted input [2].
An attacker can exploit this by providing a string such as "rgb(" followed by thousands of spaces, causing the regex engine to spend an exponential amount of time attempting to match the pattern, leading to a denial of service [1]. No authentication is required, as the attack can be triggered simply by passing a malicious color value to the GUI.
The impact is a denial of service that can freeze the application or make it unresponsive, affecting all users of dat.gui that process user-supplied color strings [3]. This vulnerability has a CVSS score of 7.5 (High).
A fix has been proposed in GitHub pull request #279, which modifies the regex to eliminate the ReDoS vector [4]. Users are advised to update to the latest patched version or apply the workaround until a fix is released.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dat.guinpm | <= 0.7.7 | — |
Affected products
3- dat.gui/dat.guidescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- github.com/advisories/GHSA-chwr-hf3w-c984ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-7755ghsaADVISORY
- github.com/dataarts/dat.gui/issues/278ghsax_refsource_MISCWEB
- github.com/dataarts/dat.gui/pull/279ghsaWEB
- snyk.io/vuln/SNYK-JS-DATGUI-1016275ghsax_refsource_MISCWEB
- www.npmjs.com/package/dat.guighsaWEB
News mentions
0No linked articles in our index yet.