6.5medium
XSS in the `of` option of the `.position()` util
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 42.9% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-gpqq-952q-5327BIT-DRUPAL-2021-41184
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| jquery jquery-ui | < 1.13.0 | CVE List |
| jquery-ui (npm) | before 1.13.0 | GitHub Advisory Database |
| org.webjars.npm:jquery-ui (Maven) | before 1.13.0 | GitHub Advisory Database |
| jQuery.UI.Combined (NuGet) | before 1.13.0 | GitHub Advisory Database |
| jquery-ui-rails (RubyGems) | before 7.0.0 | GitHub Advisory Database |
| jqueryui jquery_ui | before 1.13.0 | NVD |
| fedoraproject fedora | 33, 34, 35, 36 | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h300e_firmware | Not specified | NVD |
| netapp h500e_firmware | Not specified | NVD |
| netapp h700e_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| netapp h410c_firmware | Not specified | NVD |
| drupal drupal | from 7.0 before 7.86, from 9.2.0 before 9.2.11, from 9.3.0 before 9.3.3 | NVD |
| tenable tenable.sc | before 5.21.0 | NVD |
| oracle agile_product_lifecycle_management | 9.3.6 | NVD |
| oracle application_express | before 22.1.1 | NVD |
| oracle banking_platform | 2.9.0, 2.12.0 | NVD |
| oracle big_data_spatial_and_graph | before 23.1, 23.1 | NVD |
| oracle communications_interactive_session_recorder | 6.4 | NVD |
| oracle communications_operations_monitor | 4.3, 4.4, 5.0 | NVD |
| oracle hospitality_inventory_management | 9.1.0 | NVD |
| oracle hospitality_materials_control | 18.1 | NVD |
| oracle hospitality_suite8 | from 8.11.0 up to 8.14.0, 8.10.2 | NVD |
| oracle jd_edwards_enterpriseone_tools | up to 9.2.6.3 | NVD |
| oracle peoplesoft_enterprise_peopletools | 8.58, 8.59 | NVD |
| oracle policy_automation | from 12.2.0 up to 12.2.25 | NVD |
| oracle primavera_unifier | from 17.7 up to 17.12, 18.8, 19.12, 20.12, 21.12 | NVD |
| oracle rest_data_services | before 22.1.1, 22.1.1 | NVD |
| oracle weblogic_server | 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0 | NVD |
| drupal (Bitnami) | from 7.0.0 before 7.86.0, from 9.2.0 before 9.2.11, from 9.3.0 before 9.3.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Accepting the value of the of option of the .position() util from untrusted sources may execute untrusted code. For example, invoking the following code:
$( "#element" ).position( {
my: "left top",
at: "right bottom",
of: "<img onerror='doEvilThing()' src='/404' />",
collision: "none"
} );
will call the doEvilThing() function.
Patches
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.
Workarounds
A workaround is to not accept the value of the of option from untrusted sources.
For more information
If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.
NVD (es)
jQuery-UI es la biblioteca oficial de interfaz de usuario de jQuery. Antes de la versión 1.13.0, aceptar el valor de la opción "of" de la utilidad ".position()" de fuentes no confiables podía ejecutar código no confiable. El problema es corregido en jQuery UI versión 1.13.0. Cualquier valor de cadena pasado a la opción "of" se trata ahora como un selector CSS. Una solución es no aceptar el valor de la opción "of" de fuentes no confiables
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41184 changed 2026-11-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gpqq-952q-5327 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41184 changed 2026-11-02 | Public domain |
| Bitnami Vulnerability Database | BIT-DRUPAL-2021-41184 changed 2026-09-08 | Apache-2.0 |