CVE-2021-43306: Jquery validation Denial of Service Vulnerability
LOWCVE-2021-43306 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) 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.4.
CVE-2021-43306 at a Glance
How to Fix CVE-2021-43306
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.4
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-43306, 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.4), 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. 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-43306 Affected Jquery validation Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jquery-validation
|
npm |
< 1.19.4
|
1.19.4
|
References
Frequently Asked Questions
What is CVE-2021-43306?
Which Jquery validation versions are affected?
What version fixes CVE-2021-43306?
Is jquery-validation affected?
What CWE is associated with CVE-2021-43306?
How can I check npm dependencies for CVE-2021-43306?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j9m2-h2pv-wvph",
"modified" : "2024-11-12T14:55:23Z",
"published" : "2022-06-03T00:00:59Z",
"aliases" : [ "CVE-2021-43306" ],
"summary" : "Regular expression denial of service in jquery-validation",
"details" : "An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the jquery-validation npm package, when an attacker is able to supply arbitrary input to the url2 method",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jquery-validation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-43306"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery-validation/jquery-validation/pull/2428"
}, {
"type" : "WEB",
"url" : "https://github.com/jquery-validation/jquery-validation/commit/69cb17ed774b427f7e2ffcdf197968231725c30e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jquery-validation/jquery-validation"
}, {
"type" : "WEB",
"url" : "https://research.jfrog.com/vulnerabilities/jquery-validation-redos-xray-211348"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-03T22:26:59Z",
"nvd_published_at" : "2022-06-02T14:15:00Z"
}
}