{"id":"CVE-2021-41182","published":"2021-10-26T00:00:00Z","modified":"2025-02-13T16:28:30Z","title":"XSS in the `altField` option of the Datepicker widget","vendor":"jquery","product":"jquery-ui","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.41346,"percentile":0.98995,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jquery/jquery-ui/security/advisories/GHSA-9gj3-hwp5-pmwc","tags":[]},{"url":"https://github.com/jquery/jquery-ui/pull/1954/commits/6809ce843e5ac4128108ea4c15cbc100653c2b63","tags":[]},{"url":"https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00014.html","tags":["mailing-list"]},{"url":"https://www.drupal.org/sa-core-2022-002","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20211118-0004/","tags":[]},{"url":"https://www.drupal.org/sa-contrib-2022-004","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://www.tenable.com/security/tns-2022-09","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html","tags":[]}],"priority":{"score":29.3,"factors":[{"name":"EPSS percentile","points":19.8},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-08-05","earliestUrl":"https://github.com/aredspy/CVE-2021-41182-Tester","repos":[{"name":"aredspy/CVE-2021-41182-Tester","url":"https://github.com/aredspy/CVE-2021-41182-Tester","stars":1,"created":"2024-08-05"}]},"first":{"date":"2024-08-05","source":"PoC-in-GitHub","url":"https://github.com/aredspy/CVE-2021-41182-Tester"},"provenance":"source"},"vendorSlug":"jquery","affectedVersions":[{"vendor":"jquery","product":"jquery-ui","versions":["< 1.13.0"]}],"affected":[{"ecosystem":"npm","package":"jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-9gj3-hwp5-pmwc"],"provenance":"source"},{"ecosystem":"NuGet","package":"jQuery.UI.Combined","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-9gj3-hwp5-pmwc"],"provenance":"source"},{"ecosystem":"RubyGems","package":"jquery-ui-rails","vulnerableRanges":["<7.0.0"],"patched":["7.0.0"],"from":["GHSA-9gj3-hwp5-pmwc"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-9gj3-hwp5-pmwc"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in the altField option of the Datepicker widget in jQuery UI, affecting versions prior to 1.13.0 where values for that option from untrusted sources could lead to execution of untrusted code. An attacker who can supply the altField option value to a vulnerable page, which requires user interaction and can be triggered over the network without authentication, can cause malicious script to run in the victim's browser, with the risk mitigated by upgrading to 1.13.0 or never accepting that option's value from untrusted sources.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:07Z"},"euvd":{"id":"EUVD-2021-2186","exploited":false,"provenance":"source"}}