CVE-2016-10521 Regular Expression Denial of Service in jshamcrest

High 7.5 Published Updated

Attackers can cause denial of service in jshamcrest by submitting malicious input to the email validator, affecting applications using this npm module.

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

What is CVE-2016-10521?

CVE-2016-10521 is a high-severity denial of service vulnerability in HackerOne jshamcrest node module, published on 31 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

jshamcrest is vulnerable to regular expression denial of service (ReDoS) when certain types of user input is passed in to the emailAddress validator.

Weakness: CWE-20, CWE-400

Which versions are affected by CVE-2016-10521?

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

PackageAffectedFixed in
jshamcrest npmAll versions to 0.7.1None
jshamcrest npmAll versions to 0.7.1None

Products include Jshamcrest Project Jshamcrest.

How do I fix CVE-2016-10521?

No fix has been published for CVE-2016-10521 yet. Limit exposure of the affected software until one is available.

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-2016-10521 being exploited?

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

Sources

Also known as GHSA-xj62-87pg-vcv3.

Is CVE-2016-10521 in your software?

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

Check your SBOMs for free