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

High 7.5 Published Updated

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.

PackageAffectedFixed in
trim npmAll versions0.0.3
trim npmAll versions0.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.

Is CVE-2020-7753 in your software?

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

Check your SBOMs for free