Regular expression denial of service (ReDoS) in ansi-html
Priority LOW 36CWE-400Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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.
Why it matters now
EPSS 0.01768 78th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial ansi-html (npm): 0.0.8Red Hat: 3 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ansi-html | all versions | — | No fix listed | CNA |
| — | ansi-html (npm) | before 0.0.8 | 0.0.8 | Patch available | GHSA-whgm-jr23-g3j9 |
- ansi-html Vendor— Affected all versions Fixed in — No fix listed CNA
- ansi-html (npm) Vendor— Affected before 0.0.8 Fixed in 0.0.8 Patch available GHSA-whgm-jr23-g3j9
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ansi-html_project:ansi-html:*:*:*:*:*:node.js:*:* | before 0.0.8 | Vulnerable | Ansi-html Project |
- cpe:2.3:a:ansi-html_project:ansi-html:*:*:*:*:*:node.js:*:* Versions before 0.0.8 Vulnerable ·Ansi-html Project
Remediation
- Fix · GHSA-whgm-jr23-g3j9 ansi-html (npm) Fixed in 0.0.8 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 1 | Affected | No fix planned: Out of support scope |
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Advanced Cluster Management for Kubernetes 2
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23424
- 2026-10-03 Alias added: GHSA-whgm-jr23-g3j9
References
Sources
- CVE-2021-23424 · CVE Program
- CVE-2021-23424 · NVD
- FIRST EPSS
- GHSA-whgm-jr23-g3j9 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23424 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences