Description
Accepting the value of the of option of the .position() util from untrusted sources may execute untrusted code. For example, invoking the following code:
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 `of` option of the `.position()` util 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 `*Text` options of the Datepicker widget in jquery-ui - CVE-2021-41183
- jquery.terminal self XSS on user input - CVE-2021-43862
- jQuery-Upload-File XSS in fileNameStr - CVE-2021-37504


