Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. color-string
  4. ›
  5. CVE-2021-29060

CVE-2021-29060: Allocation of Resources Without Limits or Throttling

June 22, 2021 (updated June 30, 2021)

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String which occurs when the application is provided and checks a crafted invalid HWB string.

References

  • github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3
  • github.com/Qix-/color-string/releases/tag/1.5.5
  • github.com/advisories/GHSA-257v-vj4p-3w2h
  • github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md
  • github.com/yetingli/SaveResults/blob/main/js/color-string.js
  • nvd.nist.gov/vuln/detail/CVE-2021-29060
  • www.npmjs.com/package/color-string

Code Behaviors & Features

Detect and mitigate CVE-2021-29060 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.5

Fixed versions

  • 1.5.5

Solution

Upgrade to version 1.5.5 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/color-string/CVE-2021-29060.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:18 +0000.