Vulnerabilities in pkg:nuget/jQuery.Validation
PACKAGECVE-2021-21252 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Jquery validation libraries in the npm ecosystem. The issue involves regular expression denial of service in jquery-validation. Remediation is available by upgrading affected packages to version 1.19.3.
pkg:nuget/jQuery.Validation
Vulnerability advisories affecting package pkg:nuget/jQuery.Validation. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jxwx-85vp-gvwm | CVE-2021-21252 | HIGH | Regular Expression Denial of Service in jquery-validation |
CVE-2021-21252 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2021-21252
To remediate this vulnerability, upgrade all affected Jquery validation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jquery-validation@1.19.3
Upgrade jQuery.Validation to 1.19.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jquery-validation
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-21252, inspect your project dependencies using npm:
npm ls jquery-validation
Analyze the terminal output to locate any version of Jquery validation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.19.3), your application is affected.
Note: The npm ls jquery-validation command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Jquery validation, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-21252 Affected Jquery validation Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jquery-validation
|
npm |
< 1.19.3
|
1.19.3
|
|
jQuery.Validation
|
NuGet |
< 1.19.3
|
1.19.3
|
References
Frequently Asked Questions
What is CVE-2021-21252?
Which Jquery validation versions are affected?
What version fixes CVE-2021-21252?
Is jquery-validation affected?
Is jQuery.Validation affected?
What is the CVSS score of CVE-2021-21252?
What CWE is associated with CVE-2021-21252?
How can I check npm dependencies for CVE-2021-21252?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxwx-85vp-gvwm",
"modified" : "2023-08-31T18:34:36Z",
"published" : "2021-01-13T18:21:54Z",
"aliases" : [ "CVE-2021-21252" ],
"summary" : "Regular Expression Denial of Service in jquery-validation",
"details" : "The GitHub Security Lab team has identified potential security vulnerabilities in jquery.validation.\n\nThe project contains one or more regular expressions that are vulnerable to ReDoS (Regular Expression Denial of Service)\n\nThis issue was discovered and reported by GitHub team member @erik-krogh (Erik Krogh Kristensen).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jquery-validation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "jQuery.Validation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jquery-validation/jquery-validation/security/advisories/GHSA-jxwx-85vp-gvwm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21252"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery-validation/jquery-validation/pull/2371"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery-validation/jquery-validation/commit/5d8f29eef363d043a8fec4eb86d42cadb5fa5f7d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jquery-validation/jquery-validation"
}, {
"type" : "WEB",
"url" : "https://jqueryvalidation.org/#installation-via-package-managers"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20210219-0005"
}, {
"type" : "ADVISORY",
"url" : "https://securitylab.github.com/advisories/GHSL-2020-294-redos-jquery-validation"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/jquery-validation"
}, {
"type" : "WEB",
"url" : "https://www.nuget.org/packages/jquery.validation"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-01-13T18:21:42Z",
"nvd_published_at" : "2021-01-13T19:15:00Z"
}
}