Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. d3-color
  4. ›
  5. GMS-2022-4708

GMS-2022-4708: d3-color vulnerable to ReDoS

September 29, 2022 (updated July 30, 2026)

The d3-color module provides representations for various color spaces in the browser. Versions prior to 3.1.0 are vulnerable to a Regular expression Denial of Service. This issue has been patched in version 3.1.0. There are no known workarounds.

References

  • github.com/advisories/GHSA-36jr-mh4h-2g58
  • github.com/d3/d3-color/pull/100
  • github.com/d3/d3-color/releases/tag/v3.1.0
  • security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592

Code Behaviors & Features

Detect and mitigate GMS-2022-4708 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.2 before 3.1.0

Fixed versions

  • 3.1.0

Solution

Upgrade to version 3.1.0 or above.

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/d3-color/GMS-2022-4708.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.