CVE-2021-23424
HIGH 7.5CVSS 3.1Uncontrolled Resource Consumption in ansi-html
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.
- Published
- 18 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-whgm-jr23-g3j9
- Sources
- NVDJSONOSV GHSA-whgm-jr23-g3j9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ansi-html_project | ansi-htmlcpe:2.3:a:ansi-html_project:ansi-html:*:*:*:*:*:node.js:*:* |
< 0.0.8 | 0.0.8 |
| OSV | npm | ansi-html | < 0.0.8 | 0.0.8 |
References
- https://github.com/Tjatse/ansi-html/issues/19 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567198 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-ANSIHTML-1296849 · 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 18 Aug 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Sep 2021)