CVE-2020-7754 Regular Expression Denial of Service (ReDoS)

High 7.5 Published Updated

An attacker can cause a denial of service by providing long email inputs starting with @, triggering exponential regex processing in the npm-user-validate library.

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

What is CVE-2020-7754?

CVE-2020-7754 is a high-severity denial of service vulnerability in npm-user-validate, published on 27 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package npm-user-validate before 1.0.1. The regex that validates user emails took exponentially longer to process long input strings beginning with @ characters.

Which versions are affected by CVE-2020-7754?

4 open source packages ship an affected version, including npm-user-validate. It affects 1 product.

PackageAffectedFixed in
npm-user-validate npmAll versions1.0.1
npm-user-validate npmAll versions1.0.1
npm-user-validate npmAll versions1.0.1
npm-user-validate npmAll versions1.0.1

Products include Npmjs Npm-User-Validate.

How do I fix CVE-2020-7754?

Upgrade npm-user-validate 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-2020-7754 being exploited?

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

Sources

Also known as CLSA-2026-1772583197, CLSA-2026-1784682764, GHSA-pw54-mh39-w3hc, GHSA-xgh6-85xh-479p, ROOT-APP-NPM-CVE-2020-7754.

Is CVE-2020-7754 in your software?

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

Check your SBOMs for free