CVE-2021-36716 Improper Input Validation in is-email

High 7.5 Published Updated

An attacker can cause excessive CPU consumption and denial of service by providing crafted input to the isEmail function in the Segment is-email package.

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

CVE-2021-36716 is a high-severity denial of service vulnerability in n/a, published on 14 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A ReDoS (regular expression denial of service) flaw was found in the Segment is-email package before 1.0.1 for Node.js. An attacker that is able to provide crafted input to the isEmail(input) function may cause an application to consume an excessive amount of CPU.

Weakness: CWE-400

Which versions are affected by CVE-2021-36716?

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

PackageAffectedFixed in
is-email npmAll versions1.0.1
is-email npmAll versions1.0.1

Products include Segment Is-Email.

How do I fix CVE-2021-36716?

Upgrade is-email to 1.0.1 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-36716 being exploited?

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

Sources

Also known as GHSA-j377-2x76-558h.

Is CVE-2021-36716 in your software?

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

Check your SBOMs for free