# CVE-2021-23424: Regular Expression Denial of Service (ReDoS)

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- 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): 1.77%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-08-18T16:15:17.036Z
- Modified: 2026-06-17T03:38:44.290Z
- Also known as: GHSA-whgm-jr23-g3j9
- Weaknesses: CWE-400
- Assigned by: snyk

## Description

This affects all versions of package ansi-html. If an attacker provides a malicious string, it will get stuck processing the input for an extremely long time.

(As written by CVE List.)

## Affected

- ansi-html: before unspecified
- ansi-html (npm): before 0.0.8
- ansi-html_project ansi-html: before 0.0.8

## Every score

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

## References

- <https://github.com/Tjatse/ansi-html/issues/19> (exploit, issue-tracking, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-ANSIHTML-1296849> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567198> (exploit, third-party-advisory, web)
- <https://github.com/ioet/time-tracker-ui/security/advisories/GHSA-4fjc-8q3h-8r69> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23424> (advisory)
- <https://github.com/Tjatse/ansi-html/commit/8142b25bca3133ea060bcc1889277dc482327a63> (web)
- <https://github.com/Tjatse/ansi-html> (package)

## Sources

- CVE List: [CVE-2021-23424](https://www.cve.org/CVERecord?id=CVE-2021-23424), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-whgm-jr23-g3j9](https://github.com/advisories/GHSA-whgm-jr23-g3j9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-23424](https://nvd.nist.gov/vuln/detail/CVE-2021-23424), Public domain, modified 2026-06-17

---

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