{"id":"CVE-2021-23424","aliases":["EUVD-2021-2126","GHSA-whgm-jr23-g3j9","ROOT-APP-NPM-CVE-2021-23424"],"status":"published","title":"Regular Expression Denial of Service (ReDoS)","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01768,"percentile":0.78406,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2021-08-18T16:15:17Z","modified":"2026-08-31T06:45:03Z","fixes":[{"ecosystem":"npm","package":"ansi-html","fixed_in":["0.0.8"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"ansi-html","fixed_in":["0.0.7-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/ansi-html","fixed_in":["0.0.7-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ansi-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.8"}]}]},{"source":"osv","ecosystem":"npm","package":"ansi-html","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.8"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"ansi-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.7-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/ansi-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.7-root.io.1"}]}]}],"products":[{"vendor":"ansi-html_project","product":"ansi-html"}],"references":[{"url":"https://github.com/Tjatse/ansi-html/issues/19","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JS-ANSIHTML-1296849","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567198","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23424","tags":["advisory"]},{"url":"https://github.com/ioet/time-tracker-ui/security/advisories/GHSA-4fjc-8q3h-8r69","tags":["web"]},{"url":"https://github.com/Tjatse/ansi-html/commit/8142b25bca3133ea060bcc1889277dc482327a63","tags":["web"]},{"url":"https://github.com/advisories/GHSA-whgm-jr23-g3j9"},{"url":"https://github.com/Tjatse/ansi-html","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23424","title":"Regular Expression Denial of Service (ReDoS)","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.","status":"published","published":"2021-08-18T16:15:17.036Z","modified":"2024-09-16T17:38:46.238Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-2126","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.","status":"published","published":"2021-08-18T16:15:17Z","modified":"2024-09-16T17:38:46Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:55:40.170355Z"}],"ghsa":[{"id":"GHSA-whgm-jr23-g3j9","title":"Uncontrolled Resource Consumption in ansi-html","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.","status":"published","published":"2021-09-02T17:15:24Z","modified":"2025-02-12T05:11:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:38:30.754382Z"}],"nvd":[{"id":"CVE-2021-23424","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.","status":"published","published":"2021-08-18T17:15:07.99Z","modified":"2026-06-17T03:38:44.29Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:57.318236Z"}],"osv":[{"id":"GHSA-whgm-jr23-g3j9","title":"Uncontrolled Resource Consumption in ansi-html","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.","status":"published","published":"2021-09-02T17:15:24Z","modified":"2023-11-08T04:05:08.868477Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:58.767335Z"},{"id":"ROOT-APP-NPM-CVE-2021-23424","title":"CVE-2021-23424 in ansi-html - Patched by Root","description":"Root has patched CVE-2021-23424 in the ansi-html package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-08-31T05:20:19Z","modified":"2026-08-31T06:45:03.110520697Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
