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 scanRelated Issues
- XSS in `*Text` options of the Datepicker widget in jquery-ui - CVE-2021-41183
- XSS in the `of` option of the `.position()` util in jquery-ui - CVE-2021-41184
- jquery-ui Tooltip widget vulnerable to XSS - CVE-2012-6662
- jquery.terminal self XSS on user input - CVE-2021-43862


