{"id":"CVE-2021-41182","aliases":["CVE-2021-41182","GHSA-9gj3-hwp5-pmwc","BIT-DRUPAL-2021-41182"],"related":[],"kind":"vulnerability","state":"published","title":"XSS in the `altField` option of the Datepicker widget","summary":"jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the `altField` option of the Datepicker widget from untrusted sources may execute untrusted code. 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. A workaround is to not accept the value of the `altField` option from untrusted sources.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the `altField` option of the Datepicker widget from untrusted sources may execute untrusted code. 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. A workaround is to not accept the value of the `altField` option from untrusted sources.","source":"cvelist"},{"lang":"en","text":"### Impact\nAccepting 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:\n```js\n$( \"#datepicker\" ).datepicker( {\n\taltField: \"<img onerror='doEvilThing()' src='/404' />\",\n} );\n```\nwill call the `doEvilThing` function.\n\n### Patches\nThe issue is fixed in jQuery UI 1.13.0. Any string value passed to the `altField` option is now treated as a CSS selector.\n\n### Workarounds\nA workaround is to not accept the value of the `altField` option from untrusted sources.\n\n### For more information\nIf you have any questions or comments about this advisory, search for a relevant issue in [the jQuery UI repo](https://github.com/jquery/jquery-ui/issues). If you don't find an answer, open a new issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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 \"altField\" del widget Datepicker desde fuentes no confiables puede 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 \"altField\" se trata ahora como un selector CSS. Una solución es no aceptar el valor de la opción \"altField\" de fuentes no confiables","source":"nvd"}],"published":"2021-10-26T00:00:00.000Z","modified":"2026-09-08T08:47:04.435Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.13.0","status":"affected"}],"vendor":"jquery","product":"jquery-ui","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"npm","package":"jquery-ui","purl":"pkg:npm/jquery-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"NuGet","package":"jQuery.UI.Combined","purl":"pkg:nuget/jQuery.UI.Combined","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"RubyGems","package":"jquery-ui-rails","purl":"pkg:gem/jquery-ui-rails","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","purl":"pkg:maven/org.webjars.npm/jquery-ui","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.13.0"}],"vendor":"jqueryui","product":"jquery_ui","cpe":"cpe:2.3:a:jqueryui:jquery_ui:*:*:*:*:*:jquery:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500s_firmware","cpe":"cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700s_firmware","cpe":"cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300e_firmware","cpe":"cpe:2.3:o:netapp:h300e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500e_firmware","cpe":"cpe:2.3:o:netapp:h500e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700e_firmware","cpe":"cpe:2.3:o:netapp:h700e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410s_firmware","cpe":"cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410c_firmware","cpe":"cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300s_firmware","cpe":"cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.0","fixed":"7.86"}],"vendor":"drupal","product":"drupal","cpe":"cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"6.4"},{"status":"affected","version":"6.4"}],"vendor":"oracle","product":"communications_interactive_session_recorder","cpe":"cpe:2.3:a:oracle:communications_interactive_session_recorder:6.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.3"},{"status":"affected","version":"4.4"},{"status":"affected","version":"5.0"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.4"},{"status":"affected","version":"5.0"}],"vendor":"oracle","product":"communications_operations_monitor","cpe":"cpe:2.3:a:oracle:communications_operations_monitor:4.3:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.11.0","lastAffected":"8.14.0"},{"status":"affected","version":"8.10.2"},{"status":"affected","introduced":"8.11.0","lastAffected":"8.14.0"},{"status":"affected","version":"8.10.2"}],"vendor":"oracle","product":"hospitality_suite8","cpe":"cpe:2.3:a:oracle:hospitality_suite8:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"8.0.29"}],"vendor":"oracle","product":"mysql_enterprise_monitor","cpe":"cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"17.7"},{"status":"affected","version":"17.8"},{"status":"affected","version":"17.9"},{"status":"affected","version":"17.10"},{"status":"affected","version":"17.11"},{"status":"affected","version":"17.12"},{"status":"affected","version":"18.8"},{"status":"affected","version":"19.12"},{"status":"affected","version":"20.12"},{"status":"affected","version":"21.12"},{"status":"affected","introduced":"17.7","lastAffected":"17.12"},{"status":"affected","version":"18.8"},{"status":"affected","version":"19.12"},{"status":"affected","version":"20.12"},{"status":"affected","version":"21.12"}],"vendor":"oracle","product":"primavera_unifier","cpe":"cpe:2.3:a:oracle:primavera_unifier:17.7:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"},{"status":"affected","version":"14.1.1.0.0"},{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"},{"status":"affected","version":"14.1.1.0.0"}],"vendor":"oracle","product":"weblogic_server","cpe":"cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"5.21.0"}],"vendor":"tenable","product":"tenable.sc","cpe":"cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.3.6"}],"vendor":"oracle","product":"agile_product_lifecycle_management","cpe":"cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"22.1.1"}],"vendor":"oracle","product":"application_express","cpe":"cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.12.0"}],"vendor":"oracle","product":"banking_platform","cpe":"cpe:2.3:a:oracle:banking_platform:2.9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"23.1"},{"status":"affected","version":"23.1"}],"vendor":"oracle","product":"big_data_spatial_and_graph","cpe":"cpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.1.0"}],"vendor":"oracle","product":"hospitality_inventory_management","cpe":"cpe:2.3:a:oracle:hospitality_inventory_management:9.1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.1"}],"vendor":"oracle","product":"hospitality_materials_control","cpe":"cpe:2.3:a:oracle:hospitality_materials_control:18.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"9.2.6.3"}],"vendor":"oracle","product":"jd_edwards_enterpriseone_tools","cpe":"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.58"},{"status":"affected","version":"8.59"}],"vendor":"oracle","product":"peoplesoft_enterprise_peopletools","cpe":"cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.58:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"12.2.0","lastAffected":"12.2.25"}],"vendor":"oracle","product":"policy_automation","cpe":"cpe:2.3:a:oracle:policy_automation:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"22.1.1"},{"status":"affected","version":"22.1.1"}],"vendor":"oracle","product":"rest_data_services","cpe":"cpe:2.3:a:oracle:rest_data_services:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.86.0"}],"ecosystem":"Bitnami","package":"drupal","purl":"pkg:bitnami/drupal","source":"bitnami"}],"references":[{"url":"https://github.com/jquery/jquery-ui/security/advisories/GHSA-9gj3-hwp5-pmwc","tags":["advisory","exploit","mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/jquery/jquery-ui/pull/1954/commits/6809ce843e5ac4128108ea4c15cbc100653c2b63","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/","tags":["advisory","release-notes","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00014.html","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.drupal.org/sa-core-2022-002","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20211118-0004/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.drupal.org/sa-contrib-2022-004","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.tenable.com/security/tns-2022-09","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41182","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20211118-0004","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2021-41182.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jquery/jquery-ui","tags":["package"],"sources":["ghsa"]},{"url":"https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41182","url":"https://www.cve.org/CVERecord?id=CVE-2021-41182","licence":"CVE Terms of Use","modified":"2025-02-13T16:28:30.239Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9gj3-hwp5-pmwc","url":"https://github.com/advisories/GHSA-9gj3-hwp5-pmwc","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:23.458Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41182","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41182","licence":"Public domain","modified":"2026-08-25T16:28:27.310Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DRUPAL-2021-41182","url":"https://osv.dev/vulnerability/BIT-DRUPAL-2021-41182","licence":"Apache-2.0","modified":"2026-09-08T08:47:04.435Z"}],"updatedAt":"2026-11-25T22:58:05.207Z","epss":{"score":0.41346,"percentile":0.98694,"date":"2026-12-01T12:00:22.000Z"}}