CVE-2020-7767 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service in applications using express-validators by submitting crafted invalid URLs that trigger excessive regex processing.
- 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-2020-7767?
CVE-2020-7767 is a medium-severity denial of service vulnerability in express-validators, published on 11 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package express-validators are vulnerable to Regular Expression Denial of Service (ReDoS) when validating specifically-crafted invalid urls.
Weakness: CWE-400
Which versions are affected by CVE-2020-7767?
2 open source packages ship an affected version, including express-validators. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
express-validators npm | All versions to 1.0.4 | None |
express-validators npm | All versions to 1.0.4 | None |
Products include Express-Validators Project Express-Validators.
How do I fix CVE-2020-7767?
No fix has been published for CVE-2020-7767 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-2020-7767 being exploited?
There is no known exploitation of CVE-2020-7767 in the wild and no public exploit code.
Sources
Also known as GHSA-cf2x-rqc8-grfq.