QID 980031
QID 980031: Nodejs (npm) Security Update for jquery-ui (GHSA-9gj3-hwp5-pmwc)
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 `altField` option of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:
```js
$( "#datepicker" ).datepicker( {
altField: "<img onerror='doEvilThing()' src='/404' />",
} );
```
will call the `doEvilThing` function.
Solution
The issue is fixed in jQuery UI 1.13.0. Any string value passed to the `altField` option is now treated as a CSS selector.Workaround:
A workaround is to not accept the value of the `altField` option from untrusted sources.
A workaround is to not accept the value of the `altField` option from untrusted sources.
Vendor References
- GHSA-9gj3-hwp5-pmwc -
github.com/advisories/GHSA-9gj3-hwp5-pmwc
CVEs related to QID 980031
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-9gj3-hwp5-pmwc | jquery-ui |
|