CVE-2021-3820 Inefficient Regular Expression Complexity in pksunkara/inflect

Medium 5.3 Published Updated

Attackers can cause denial of service in applications using the inflect library by triggering inefficient regular expression complexity.

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-3820?

CVE-2021-3820 is a medium-severity denial of service vulnerability in pksunkara/inflect, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

inflect is vulnerable to Inefficient Regular Expression Complexity

Weakness: CWE-1333

Which versions are affected by CVE-2021-3820?

2 open source packages ship an affected version, including i. It affects 1 product.

PackageAffectedFixed in
i npmAll versions0.3.7
i npmAll versions0.3.7

Products include Inflect Project Inflect.

How do I fix CVE-2021-3820?

Upgrade i to 0.3.7 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-3820 being exploited?

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

Sources

Also known as GHSA-x55w-vjjp-222r.

Is CVE-2021-3820 in your software?

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

Check your SBOMs for free