CVE-2021-21252 Regular expression denial of service in jquery-validation

Medium 5.3 Published Updated

An attacker can cause a denial of service in applications using the jQuery Validation Plugin 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
Available

What is CVE-2021-21252?

CVE-2021-21252 is a medium-severity denial of service vulnerability in Netapp Snapcenter, published on 13 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The jQuery Validation Plugin provides drop-in validation for your existing forms. It is published as an npm package "jquery-validation". jquery-validation before version 1.19.3 contains one or more regular expressions that are vulnerable to ReDoS (Regular Expression Denial of Service). This is fixed in 1.19.3.

Weakness: CWE-400

Which versions are affected by CVE-2021-21252?

4 open source packages ship an affected version, including jQuery.Validation and jquery-validation. It affects 2 products.

PackageAffectedFixed in
jQuery.Validation NuGetAll versions1.19.3
jQuery.Validation NuGetAll versions1.19.3
jquery-validation npmAll versions1.19.3
jquery-validation npmAll versions1.19.3

Products include Jqueryvalidation Jquery Validation, Netapp Snapcenter.

How do I fix CVE-2021-21252?

Upgrade jQuery.Validation to 1.19.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-2021-21252 being exploited?

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

All Netapp Snapcenter vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-21252, GHSA-jxwx-85vp-gvwm, UBUNTU-CVE-2021-21252.

Is CVE-2021-21252 in your software?

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

Check your SBOMs for free