CVE-2020-26308 GHSL-2020-302: Regular Expression Denial of Service (ReDoS) in validate.js

High 8.7 Published Updated

Attackers can cause denial of service in applications using validate.js by exploiting vulnerable regular expressions.

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-26308?

CVE-2020-26308 is a high-severity denial of service vulnerability in ansman validate.js, published on 26 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Validate.js provides a declarative way of validating javascript objects. Versions 0.13.1 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no known patches are available.

Weakness: CWE-1333

Which versions are affected by CVE-2020-26308?

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

PackageAffectedFixed in
validate.js npmAll versions to 0.13.1None
validate.js npmAll versions to 0.13.1None

Products include Validatejs Validate.js.

How do I fix CVE-2020-26308?

No fix has been published for CVE-2020-26308 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-26308 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26308 exists.

Sources

Also known as GHSA-rv73-9c8w-jp4c.

Is CVE-2020-26308 in your software?

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

Check your SBOMs for free