QID 980029
QID 980029: Nodejs (npm) Security Update for jquery-ui (GHSA-gpqq-952q-5327)
Security update has been released for jquery-ui to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Accepting the value of the `of` option of the [`.position()`](https://api.jqueryui.com/position/) util from untrusted sources may execute untrusted code. For example, invoking the following code:
```js
$( "#element" ).position( {
my: "left top",
at: "right bottom",
of: "<img onerror='window.globalOf=true' src='/404' />",
collision: "none"
} );
```
will call the `doEvilThing()` function.
Solution
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.Workaround:
A workaround is to not accept the value of the `of` option from untrusted sources.
A workaround is to not accept the value of the `of` option from untrusted sources.
Vendor References
- GHSA-gpqq-952q-5327 -
github.com/advisories/GHSA-gpqq-952q-5327
CVEs related to QID 980029
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-gpqq-952q-5327 | jquery-ui |
|