CVE-2022-31147: jquery-validation Regular Expression Denial of Service
Summary
CVE-2022-31147: jquery-validation Regular Expression Denial of Service due to arbitrary input to url2 method. Affects jquery-validation versions < 1.19.5. Fixed in 1.19.5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The jquery-validation package is an open-source library that provides client-side form validation for web applications. It is commonly used to validate user input before submitting forms. The package is available on the npm ecosystem and can be easily integrated into JavaScript projects. However, a vulnerability has been discovered in the package that allows for a Regular Expression Denial of Service (ReDoS) attack when arbitrary input is supplied to the url2 method.
Vulnerability Detail
The vulnerability, identified as CVE-2022-31147, is an incomplete fix of a previously reported vulnerability (CVE-2021-43306). It allows an attacker to trigger an exponential ReDoS attack by providing malicious input to the url2 method. This can lead to a denial of service condition, where the application becomes unresponsive or crashes. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-1333.
How To Fix
Minimum fixed version
1.19.5
This is the first release that contains the fix.
npm install jquery-validation@1.19.5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is crucial to update the package to the latest version to mitigate the risk of exploitation.
Conclusion
The jquery-validation package is vulnerable to a Regular Expression Denial of Service (ReDoS) attack when arbitrary input is provided to the url2 method. This can result in a denial of service condition, impacting the availability of the application. To mitigate this vulnerability, it is crucial to update the package to version 1.19.5 or later. There are no known workarounds for this issue. For additional support, please contact DevNack.com.
See every vulnerability recorded for jquery-validation →
FAQ
The vulnerability allows an attacker to trigger a denial of service condition in applications that use the jquery-validation package. This can lead to service disruptions, unresponsive web pages, or even application crashes.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and the tool will analyze it for any known vulnerabilities.
At the time of this report, there are no known public exploits for this vulnerability. However, it is important to update the package to the latest version to prevent any potential exploitation.
No, updating the package to the latest version is the recommended solution to mitigate the risk of exploitation. There are no known workarounds for this vulnerability.
For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in addressing this vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for jquery-validation.