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

High 7.5 Published Updated

Attackers can cause a denial of service in applications using the ansi-html library by providing malicious input that triggers excessive processing time.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23424?

CVE-2021-23424 is a high-severity denial of service vulnerability in ansi-html, published on 18 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2021-23424?

2 open source packages ship an affected version, including ansi-html. It affects 1 product.

PackageAffectedFixed in
ansi-html npmAll versions0.0.8
ansi-html npmAll versions0.0.8

Products include Ansi-Html Project Ansi-Html.

How do I fix CVE-2021-23424?

Upgrade ansi-html to 0.0.8 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-23424 being exploited?

There is no known exploitation of CVE-2021-23424 in the wild and no public exploit code.

Sources

Also known as GHSA-whgm-jr23-g3j9, ROOT-APP-NPM-CVE-2021-23424.

Is CVE-2021-23424 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free