CVE-2020-7753 Regular Expression Denial of Service (ReDoS)
Attackers can cause a denial of service in applications using the trim library by exploiting a Regular Expression Denial of Service vulnerability.
- 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-7753?
CVE-2020-7753 is a high-severity denial of service vulnerability in trim, published on 27 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package trim are vulnerable to Regular Expression Denial of Service (ReDoS) via trim().
Weakness: CWE-400
Which versions are affected by CVE-2020-7753?
2 open source packages ship an affected version, including trim. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
trim npm | All versions | 0.0.3 |
trim npm | All versions | 0.0.3 |
Products include Trim Project Trim.
How do I fix CVE-2020-7753?
Upgrade trim to 0.0.3 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-7753 being exploited?
There is no known exploitation of CVE-2020-7753 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1772064637, GHSA-w5p7-h5w8-2hfq, ROOT-APP-NPM-CVE-2020-7753.