VDB
Sign up
MEDIUM6.1

GHSA-rrj2-ph5q-jxw2

jquery-validation vulnerable to Cross-site Scripting

Quick fix

GHSA-rrj2-ph5q-jxw2 — jquery-validation: upgrade to the fixed version with the command below.

npm install jquery-validation@1.20.0

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/jquery-validation
Introduced in: 0Fixed in: 1.20.0
Fixnpm install jquery-validation@1.20.0

References