6.5medium
XSS in `*Text` options of the Datepicker widget
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 8.53% (higher than 95% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-j7qv-pgf6-hvh4BIT-DRUPAL-2021-41183
Description
jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of various `*Text` options of the Datepicker widget from untrusted sources may execute untrusted code. The issue is fixed in jQuery UI 1.13.0. The values passed to various `*Text` options are now always treated as pure text, not HTML. A workaround is to not accept the value of the `*Text` options 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-rails (RubyGems) | before 7.0.0 | GitHub Advisory Database |
| jQuery.UI.Combined (NuGet) | before 1.13.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 |
| debian debian_linux | 9.0 | 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 |
| 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_suite8 | from 8.11.0 up to 11.14.0, 8.10.2 | NVD |
| oracle jd_edwards_enterpriseone_tools | up to 9.2.6.3 | NVD |
| oracle mysql_enterprise_monitor | up to 8.0.29 | NVD |
| oracle peoplesoft_enterprise_peopletools | 8.58, 8.59 | NVD |
| oracle policy_automation | from 12.2.0 up to 12.2.5 | NVD |
| oracle primavera_gateway | from 17.7 up to 17.12, 18.8.0, 19.12.0, 20.12.0, 21.12.0 | 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 |
| tenable tenable.sc | before 5.21.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
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 various `*Text` options of the Datepicker widget from untrusted sources may execute untrusted code. The issue is fixed in jQuery UI 1.13.0. The values passed to various `*Text` options are now always treated as pure text, not HTML. A workaround is to not accept the value of the `*Text` options from untrusted sources.
GitHub Advisory Database
Impact
Accepting the value of various *Text options of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:
$( "#datepicker" ).datepicker( {
showButtonPanel: true,
showOn: "both",
closeText: "<script>doEvilThing( 'closeText XSS' )</script>",
currentText: "<script>doEvilThing( 'currentText XSS' )</script>",
prevText: "<script>doEvilThing( 'prevText XSS' )</script>",
nextText: "<script>doEvilThing( 'nextText XSS' )</script>",
buttonText: "<script>doEvilThing( 'buttonText XSS' )</script>",
appendText: "<script>doEvilThing( 'appendText XSS' )</script>",
} );
will call doEvilThing with 6 different parameters coming from all *Text options.
Patches
The issue is fixed in jQuery UI 1.13.0. The values passed to various *Text options are now always treated as pure text, not HTML.
Workarounds
A workaround is to not accept the value of the *Text options 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 varias opciones "*Text" del widget Datepicker desde fuentes no confiables podía ejecutar código no confiable. El problema es corregido en jQuery UI versión 1.13.0. Los valores pasados a varias opciones "*Text" son ahora tratados siempre como texto puro, no como HTML. Una solución es no aceptar el valor de las opciones "*Text" de fuentes no confiables
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41183 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j7qv-pgf6-hvh4 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41183 changed 2026-08-25 | Public domain |
| Bitnami Vulnerability Database | BIT-DRUPAL-2021-41183 changed 2026-09-08 | Apache-2.0 |