CVE-2025-3573 jquery-validation vulnerable to Cross-site Scripting

Medium 5.3 Published Updated

An attacker can execute arbitrary scripts via XSS in the showLabel function using user-controlled placeholder values in the jQuery Validation library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-3573?

CVE-2025-3573 is a medium-severity cross-site scripting vulnerability in jquery-validation, published on 15 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Versions of the package jquery-validation before 1.20.0 are vulnerable to Cross-site Scripting (XSS) in the showLabel() function, which may take input from a user-controlled placeholder value. This value will populate a message via $.validator.messages in a user localizable dictionary.

Weakness: CWE-79

Which versions are affected by CVE-2025-3573?

2 open source packages ship an affected version, including jquery-validation.

PackageAffectedFixed in
jquery-validation npmAll versions1.20.0
jquery-validation npmAll versions1.20.0

How do I fix CVE-2025-3573?

Upgrade jquery-validation to 1.20.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-3573 being exploited?

There is no known exploitation of CVE-2025-3573 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-3573, GHSA-rrj2-ph5q-jxw2, UBUNTU-CVE-2025-3573.

Is CVE-2025-3573 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free