{"id":"CVE-2021-41183","published":"2021-10-26T00:00:00Z","modified":"2025-02-13T16:28:30Z","title":"XSS in `*Text` options 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 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.","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.08533,"percentile":0.95178,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/","tags":[]},{"url":"https://github.com/jquery/jquery-ui/security/advisories/GHSA-j7qv-pgf6-hvh4","tags":[]},{"url":"https://github.com/jquery/jquery-ui/pull/1953","tags":[]},{"url":"https://bugs.jqueryui.com/ticket/15284","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.drupal.org/sa-core-2022-001","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":23.6,"factors":[{"name":"EPSS percentile","points":19.04},{"name":"CVSS severity","points":4.55}]},"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-j7qv-pgf6-hvh4"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-j7qv-pgf6-hvh4"],"provenance":"source"},{"ecosystem":"RubyGems","package":"jquery-ui-rails","vulnerableRanges":["<7.0.0"],"patched":["7.0.0"],"from":["GHSA-j7qv-pgf6-hvh4"],"provenance":"source"},{"ecosystem":"NuGet","package":"jQuery.UI.Combined","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-j7qv-pgf6-hvh4"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in the *Text options of the Datepicker widget in jQuery UI, affecting versions before 1.13.0, where values from these options are treated as HTML rather than plain text. An attacker who can supply the values of these options (for example, where an application accepts them from untrusted sources) can cause untrusted code to execute, and exploitation requires a user to interact with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:14Z"},"euvd":{"id":"EUVD-2021-2214","exploited":false,"provenance":"source"}}