The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-21252

CVE-2021-21252: jQuery Validation Plugin DoS Vulnerability

CVE-2021-21252 is a Regular Expression Denial of Service (ReDoS) vulnerability in jQuery Validation Plugin that allows attackers to cause service disruption. This post covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-21252 Overview

CVE-2021-21252 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting the jQuery Validation Plugin, a widely-used npm package (jquery-validation) that provides drop-in form validation capabilities for web applications. The vulnerability exists in versions prior to 1.19.3 and stems from one or more regular expressions that are susceptible to catastrophic backtracking when processing maliciously crafted input strings.

Critical Impact

Attackers can exploit vulnerable regular expressions in the URL validation method to cause excessive CPU consumption, potentially leading to application unresponsiveness or denial of service conditions affecting all users of the web application.

Affected Products

  • jQuery Validation Plugin versions prior to 1.19.3 (npm package jquery-validation)
  • NetApp SnapCenter (affected downstream)
  • Applications using jqueryvalidation:jquery_validation for Node.js

Discovery Timeline

  • January 13, 2021 - CVE-2021-21252 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-21252

Vulnerability Analysis

The jQuery Validation Plugin contains a ReDoS vulnerability in its URL validation functionality. Regular Expression Denial of Service occurs when a regex pattern exhibits exponential time complexity due to catastrophic backtracking. When certain input strings are processed against vulnerable patterns, the regex engine repeatedly backtracks through numerous possible matches, consuming excessive CPU resources.

In this case, the vulnerable regular expression is used in the URL validation method within src/core.js. The original regex pattern contained constructs that, when given specially crafted input, would cause the validation function to hang or consume disproportionate processing time relative to the input size.

Root Cause

The root cause is an inefficiently designed regular expression in the URL validation logic. The original pattern (?:[a-z\\\u00a1-\\\uffff0-9]-*)*[a-z\\\u00a1-\\\uffff0-9]+ contains nested quantifiers and alternations that create ambiguous matching paths. When the regex engine encounters input that nearly matches but ultimately fails, it must explore exponentially many backtracking paths before determining a non-match. This algorithmic complexity vulnerability (CWE-400: Uncontrolled Resource Consumption) allows attackers to trigger denial of service with relatively small payloads.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can submit malicious input to any form field validated using the vulnerable URL validation method. The crafted string exploits the regex backtracking behavior, causing the client-side JavaScript to hang or the server (if validation runs server-side) to become unresponsive.

The following shows the security patch that addresses the ReDoS vulnerability in src/core.js:

javascript
// https://gist.github.com/dperini/729294
// see also https://mathiasbynens.be/demo/url-regex
// modified to allow protocol-relative URLs
// BEFORE (vulnerable):
// return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\.(?:[a-z\\u00a1-\\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value );

// AFTER (fixed):
return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\.)+(?:[a-z\\u00a1-\\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value );

Source: GitHub Commit - Security Patch

The fix replaces the vulnerable nested quantifier pattern with a more constrained version that bounds the repetition length ({0,62}) and restructures the character class matching to prevent catastrophic backtracking.

Detection Methods for CVE-2021-21252

Indicators of Compromise

  • Unusual CPU spikes in client browsers or server-side Node.js processes during form validation operations
  • Web application forms becoming unresponsive when processing URL input fields
  • Increased page load times or timeouts specifically related to form submission endpoints
  • Error logs showing JavaScript execution timeouts or worker thread exhaustion

Detection Strategies

  • Audit package.json and package-lock.json files for jquery-validation versions below 1.19.3
  • Use software composition analysis (SCA) tools to identify vulnerable dependencies in your application stack
  • Implement client-side performance monitoring to detect anomalous JavaScript execution times during form validation
  • Deploy web application firewalls (WAF) with rules to detect abnormally long or malformed URL strings in form submissions

Monitoring Recommendations

  • Configure alerting on JavaScript error rates and execution timeouts in application performance monitoring (APM) tools
  • Monitor Node.js process CPU utilization for server-side validation scenarios
  • Track form validation response times and establish baselines to identify anomalous patterns
  • Enable logging for rejected form submissions to identify potential exploitation attempts

How to Mitigate CVE-2021-21252

Immediate Actions Required

  • Upgrade jquery-validation to version 1.19.3 or later immediately
  • Audit all applications and dependencies that may include the jQuery Validation Plugin
  • Review application code for any custom URL validation logic that may have copied the vulnerable regex pattern
  • Consider implementing input length limits on URL fields as a defense-in-depth measure

Patch Information

The vulnerability is fixed in jQuery Validation Plugin version 1.19.3. The patch modifies the URL validation regular expression to eliminate the catastrophic backtracking condition. Organizations should update their dependencies using their package manager:

For npm: npm update jquery-validation
For yarn: yarn upgrade jquery-validation

Additional resources:

  • GitHub Security Advisory (GHSA-jxwx-85vp-gvwm)
  • GitHub Pull Request #2371
  • NetApp Security Advisory

Workarounds

  • If immediate upgrade is not possible, implement server-side input length restrictions on URL fields to limit regex execution time
  • Apply custom timeout wrappers around validation functions to prevent prolonged execution
  • Consider temporarily disabling URL validation or replacing it with a safer alternative regex until the patch can be applied
  • Use Content Security Policy (CSP) headers to limit the impact of client-side DoS conditions
bash
# Configuration example - Update package to patched version
npm install jquery-validation@1.19.3 --save

# Verify the installed version
npm list jquery-validation

# Audit for remaining vulnerabilities
npm audit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJquery Validation

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Security Advisory

  • Debian LTS Announcement

  • NetApp Security Advisory

  • NPM Package Information
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Pull Request
  • Related CVEs
  • CVE-2022-31147: jQuery Validation Plugin DoS Vulnerability

  • CVE-2025-3573: jQuery Validation XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English