CVE-2021-41182 — XSS in org.webjars.npm:jquery-ui — CVE Details
XSS in the `altField` option of the Datepicker widget in jquery-ui
Summary
Advisory Timeline
- First published October 26, 2021 (1812 days ago).
- Last revised July 8, 2026 — 1716 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.13.0 for org.webjars.npm:jquery-ui -->
gem install jquery-ui-rails -v 7.0.0
npm install jquery-ui@1.13.0
dotnet add package jQuery.UI.Combined --version 1.13.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 4 ecosystems: maven (1), npm (1), nuget (1), rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.webjars.npm:jquery-ui | maven | 1.10.4, 1.10.5, 1.12.0, 1.12.0-rc.2 (+3 more) | 1.13.0 |
| jquery-ui-rails | rubygems | 0.0.1, 0.0.2, 0.1.0, 0.2.0 (+33 more) | 7.0.0 |
| jquery-ui | npm | All versions | 1.13.0 |
| jQuery.UI.Combined | nuget | 1.10.0, 1.10.1, 1.10.2, 1.10.3 (+29 more) | 1.13.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-9gj3-hwp5-pmwcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41182ADVISORY
- https://github.com/jquery/jquery-ui/pull/1954/commits/6809ce843e5ac4128108ea4c15cbc100653c2b63WEB
- https://www.tenable.com/security/tns-2022-09WEB
- https://www.oracle.com/security-alerts/cpujul2022.htmlWEB
- https://www.oracle.com/security-alerts/cpuapr2022.htmlWEB
- https://www.drupal.org/sa-core-2022-002WEB
- https://www.drupal.org/sa-contrib-2022-004WEB
- https://security.netapp.com/advisory/ntap-20211118-0004WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHESWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERWWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHESWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERWWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3WEB
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.htmlWEB
- https://lists.debian.org/debian-lts-announce/2022/01/msg00014.htmlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2021-41182.ymlWEB
- https://github.com/jquery/jquery-uiPACKAGE
- https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-releasedWEB
Frequently Asked Questions
- What is CVE-2021-41182?
- XSS in the `altField` option of the Datepicker widget in jquery-ui This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2021-41182?
- CVE-2021-41182 affects org.webjars.npm:jquery-ui, jquery-ui-rails and jquery-ui (and 1 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41182 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2016-10707HIGH
Denial of Service in jquery
- CVE-2019-11358MEDIUM
XSS in jQuery as used in Drupal, Backdrop CMS, and other products
- CVE-2021-41184MEDIUM
XSS in the `of` option of the `.position()` util in jquery-ui
- CVE-2020-11022MEDIUM
Potential XSS vulnerability in jQuery
- CVE-2022-31160MEDIUM
jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label
- CVE-2016-7103MEDIUM
jQuery-UI vulnerable to Cross-site Scripting in dialog closeText
- CVE-2021-41183MEDIUM
XSS in `*Text` options of the Datepicker widget in jquery-ui
- CVE-2020-11023MEDIUM
Potential XSS vulnerability in jQuery
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies