CVE-2022-31147: jquery-validation Regular Expression Denial of Service

jquery-validation Updated 02 Oct 2025

Summary

05/07/2022
Yes i
High
7.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for jquery-validation.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback