Description
Accepting the value of various *Text options of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:
will call doEvilThing with 6 different parameters coming from all *Text options.
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 `*Text` options of the Datepicker widget in jquery-ui and gives you actionable findings to investigate.
Start a free scanRelated Issues
- XSS in the `altField` option of the Datepicker widget in jquery-ui - CVE-2021-41182
- 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 UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label - CVE-2022-31160


