Vulnerability library
Security checkSeptember 26, 2023

XSS in the `altField` option of the Datepicker widget in jquery-ui

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmjquery-ui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Accepting the value of the altField option of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:

will call the doEvilThing function.

Recommendation

Update the jquery-ui package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.13.0
  • Patched version(s): 1.13.0

References

Could your website be exposed too?

SmartScanner can check your website for XSS in the `altField` option of the Datepicker widget in jquery-ui and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 26, 2023