Vulnerability DatabaseGHSA-36jr-mh4h-2g58

GHSA-36jr-mh4h-2g58
JavaScript vulnerability analysis and mitigation

Overview

The d3-color module, which provides representations for various color spaces in the browser, was found to be vulnerable to Regular Expression Denial of Service (ReDoS) in versions prior to 3.1.0. The vulnerability was discovered on February 18, 2021, and was publicly disclosed on September 29, 2022. This high-severity vulnerability affects all versions of d3-color below 3.1.0 (GitHub Advisory).

Technical details

The vulnerability stems from a problematic regular expression pattern that could cause catastrophic backtracking. The original expression /\s*([+-]?\d*.?\d+(?:[eE][+-]?\d+)?)%\s*/ was fundamentally ambiguous because both the dot and the digits preceding the dot were optional, leading to a combinatorial explosion of possible valid matches. The issue was fixed by combining it into an optional group and making the dot required for that group: /\s*([+-]?(?:\d*.)?\d+(?:[eE][+-]?\d+)?)%\s*/ (D3 PR).

Impact

When exploited, this vulnerability can cause the system to excessively consume CPU resources, potentially leading to a Denial of Service condition. The impact is particularly significant when processing maliciously crafted input strings, where the regular expression engine must perform an exponential number of backtracking steps (Snyk Report).

Mitigation and workarounds

The recommended mitigation is to upgrade d3-color to version 3.1.0 or higher, which contains the patched regular expression pattern. The fix was implemented in version 3.1.0, released on March 28, 2022. There are no known workarounds for this vulnerability other than upgrading to the patched version (GitHub Release).

Community reactions

The vulnerability has garnered significant attention from the developer community, with multiple requests for backporting the fix to earlier versions, particularly versions 1.x and 2.x, due to ES5 compatibility requirements. Several developers have expressed interest in contributing to backporting efforts, highlighting the widespread impact of this vulnerability across different versions of the library (D3 PR).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-j44m-5v8f-gc9cHIGH7.7
  • JavaScriptJavaScript
  • flowise
NoYesOct 10, 2025
CVE-2025-11183MEDIUM6.9
  • JavaScriptJavaScript
  • qwc2
NoYesOct 13, 2025
CVE-2025-62374MEDIUM6.4
  • JavaScriptJavaScript
  • parse
NoYesOct 14, 2025
GHSA-fhwm-pc6r-4h2fMEDIUM6.1
  • JavaScriptJavaScript
  • commandkit
NoYesOct 13, 2025
CVE-2025-62366LOW2.9
  • JavaScriptJavaScript
  • mailgen
NoYesOct 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management