# CVE-2021-29060: Regular Expression Denial of Service (ReDOS)

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.01%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T15:45:53.000Z
- Modified: 2026-06-17T03:47:13.097Z
- Also known as: GHSA-257v-vj4p-3w2h
- Weaknesses: CWE-770
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- color-string (npm): before 1.5.5
- color-string_project color-string: before 1.5.5

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md> (exploit, patch, third-party-advisory, web)
- <https://github.com/yetingli/SaveResults/blob/main/js/color-string.js> (third-party-advisory, web)
- <https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/color-string> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29060> (advisory)
- <https://github.com/Qix-/color-string/releases/tag/1.5.5> (web)

## Sources

- CVE List: [CVE-2021-29060](https://www.cve.org/CVERecord?id=CVE-2021-29060), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-257v-vj4p-3w2h](https://github.com/advisories/GHSA-257v-vj4p-3w2h), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-29060](https://nvd.nist.gov/vuln/detail/CVE-2021-29060), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29060 · Whole record: https://cve.day/CVE-2021-29060.json · Rebuilt by cve.day 2026-11-25T22:58:02.028Z
