XSS in the `of` option of the `.position()` util
jquery-ui
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jquery-ui npm |
|
|
| org.webjars.npm:jquery-ui Maven |
|
|
| jQuery.UI.Combined NuGet |
jquery-ui
| Product | Affected | Fixed in |
|---|---|---|
| jquery-ui npm |
|
|
| org.webjars.npm:jquery-ui Maven |
|
|
| jQuery.UI.Combined NuGet |
< 1.13.0
|
| jquery-ui-rails RubyGems |
|
|
jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the `of` option of the `.position()` util from untrusted sources may execute untrusted code. The issue is fixed in jQuery UI 1.13.0. Any string value passed to the `of` option is now treated as a CSS selector. A workaround is to not accept the value of the `of` option from untrusted sources.
From the CVE record · GitHub_M
Before jQuery UI 1.13.0, passing an untrusted value to the `.position()` utility’s `of` option may execute untrusted code. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Check installations of npm jquery-ui, Maven org.webjars.npm:jquery-ui, and NuGet jQuery.UI.Combined below 1.13.0, or RubyGems jquery-ui-rails below 7.0.0.