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-2025-3573

CVE-2025-3573: jQuery Validation XSS Vulnerability

CVE-2025-3573 is a cross-site scripting flaw in jquery-validation affecting versions before 1.20.0. The vulnerability exists in the showLabel() function that processes user-controlled input. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-3573 Overview

CVE-2025-3573 is a Cross-Site Scripting (XSS) vulnerability affecting the jquery-validation package in versions before 1.20.0. The vulnerability exists in the showLabel() function, which may take input from a user-controlled placeholder value. This value populates a message via $.validator.messages in a user localizable dictionary, allowing attackers to inject malicious scripts into web pages that utilize the vulnerable validation library.

Critical Impact

Attackers can inject arbitrary JavaScript code through validation error messages, potentially leading to session hijacking, credential theft, or malicious content delivery to end users visiting affected web applications.

Affected Products

  • jquery-validation versions before 1.20.0
  • Web applications using vulnerable jquery-validation for form validation
  • Sites implementing custom validation messages via $.validator.messages

Discovery Timeline

  • April 15, 2025 - CVE-2025-3573 published to NVD
  • April 15, 2025 - Last updated in NVD database

Technical Details for CVE-2025-3573

Vulnerability Analysis

The vulnerability stems from unsafe handling of user-supplied content within the showLabel() function of the jquery-validation library. When validation error messages are displayed to users, the library directly uses jQuery's .html() method to render the message content. Since the message value can be influenced by user-controlled placeholder values or through the $.validator.messages localizable dictionary, an attacker can craft malicious input containing JavaScript code that will be executed in the context of the victim's browser session.

This is a stored or reflected XSS vulnerability depending on how the application implements validation messages. If validation messages are stored server-side and rendered for multiple users, the attack becomes persistent. If the malicious content is reflected from user input, it represents a reflected XSS scenario.

Root Cause

The root cause is the use of jQuery's .html() method instead of .text() when rendering validation error messages in the showLabel() function. The .html() method interprets and executes HTML markup and embedded scripts, while .text() safely escapes any HTML entities. When user-controllable data flows into the message parameter without proper sanitization, it creates an XSS injection point.

Attack Vector

The attack can be executed over the network without authentication. An attacker can exploit this vulnerability by:

  1. Manipulating placeholder values or validation message configurations to include malicious script content
  2. When form validation fails, the malicious payload is rendered via the showLabel() function
  3. The browser executes the injected JavaScript in the context of the vulnerable web application
  4. The attacker can steal session cookies, redirect users to phishing sites, or perform actions on behalf of the victim

The following patch from the jquery-validation repository shows the security fix:

javascript
 			error.removeClass( this.settings.validClass ).addClass( this.settings.errorClass );

 			// Replace message on existing label
-			error.html( message );
+			if ( this.settings && this.settings.escapeHtml ) {
+				error.text( message || "" );
+			} else {
+				error.html( message || "" );
+			}
 		} else {

 			// Create error element
 			error = $( "<" + this.settings.errorElement + ">" )
 				.attr( "id", elementID + "-error" )
-				.addClass( this.settings.errorClass )
-				.html( message || "" );
+				.addClass( this.settings.errorClass );
+
+			if ( this.settings && this.settings.escapeHtml ) {
+				error.text( message || "" );
+			} else {
+				error.html( message || "" );
+			}

 			// Maintain reference to the element to be placed into the DOM
 			place = error;

Source: GitHub Commit - jQuery Validation

Detection Methods for CVE-2025-3573

Indicators of Compromise

  • Unexpected JavaScript execution during form validation error display
  • Validation error messages containing HTML or script tags in application logs
  • User reports of suspicious redirects or popups during form submission
  • Network requests to unknown external domains originating from validation error handlers

Detection Strategies

  • Review client-side JavaScript dependencies for jquery-validation versions prior to 1.20.0
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Monitor application logs for validation messages containing suspicious patterns like <script>, javascript:, or event handlers
  • Use software composition analysis (SCA) tools to identify vulnerable npm packages in your dependency tree

Monitoring Recommendations

  • Enable CSP violation reporting to detect potential XSS exploitation attempts
  • Implement web application firewall (WAF) rules to filter requests containing script injection patterns in form fields
  • Monitor for anomalous client-side behavior using browser-based security monitoring
  • Audit form validation configurations for user-controllable message content

How to Mitigate CVE-2025-3573

Immediate Actions Required

  • Upgrade jquery-validation to version 1.20.0 or later immediately
  • If upgrading is not immediately possible, enable the escapeHtml option in validator settings
  • Review all custom validation messages for potentially unsafe content
  • Implement Content Security Policy headers to provide defense-in-depth against XSS

Patch Information

The vulnerability has been addressed in jquery-validation version 1.20.0. The fix introduces a new escapeHtml configuration option that uses jQuery's .text() method instead of .html() to safely render validation messages. Organizations should update their dependencies through npm or yarn package managers. For technical details, see the GitHub Pull Request and the Snyk Vulnerability Advisory.

Workarounds

  • Enable the escapeHtml option in your validator configuration if using a patched version
  • Sanitize all user-controllable inputs that may flow into validation messages
  • Implement strict Content Security Policy headers to block inline script execution
  • Use server-side validation as the primary security control rather than relying solely on client-side validation
bash
# Update jquery-validation via npm
npm update jquery-validation

# Or install specific patched version
npm install jquery-validation@1.20.0

# Verify installed version
npm list jquery-validation

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJquery Validation

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit - jQuery Validation

  • GitHub Pull Request - jQuery Validation

  • Snyk Vulnerability - jQuery Validation
  • Related CVEs
  • CVE-2022-31147: jQuery Validation Plugin DoS Vulnerability

  • CVE-2021-21252: jQuery Validation Plugin DoS 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