CVE-2022-31160 — Vulnerability in jquery-ui — CVE Details
jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label
Summary
Advisory Timeline
- First published July 18, 2022 (1547 days ago).
- Last revised July 21, 2025 — 1099 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install jquery-ui@1.13.2
<!-- Update pom.xml dependency version to 1.13.2 for org.webjars.npm:jquery-ui -->
gem install jquery-ui-rails -v 8.0.0
dotnet add package jQuery.UI.Combined --version 1.13.2
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 |
|---|---|---|---|
| jquery-ui | npm | All versions | 1.13.2 |
| org.webjars.npm:jquery-ui | maven | 1.10.4, 1.10.5, 1.12.0, 1.12.0-rc.2 (+5 more) | 1.13.2 |
| jquery-ui-rails | rubygems | 0.0.1, 0.0.2, 0.1.0, 0.2.0 (+34 more) | 8.0.0 |
| jQuery.UI.Combined | nuget | 1.10.0, 1.10.1, 1.10.2, 1.10.3 (+31 more) | 1.13.2 |
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.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31160ADVISORY
- https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9WEB
- https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-releasedWEB
- https://github.com/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.mdWEB
- https://github.com/jquery-ui-rails/jquery-ui-rails/releases/tag/v8.0.0-releaseWEB
- https://github.com/jquery/jquery-uiPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2022-31160.ymlWEB
- https://lists.debian.org/debian-lts-announce/2022/12/msg00015.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDDWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMOWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6WEB
- https://security.netapp.com/advisory/ntap-20220909-0007WEB
- https://www.drupal.org/sa-contrib-2022-052WEB
Frequently Asked Questions
- What is CVE-2022-31160?
- jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2022-31160?
- CVE-2022-31160 affects jquery-ui, org.webjars.npm:jquery-ui and jquery-ui-rails (and 1 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31160 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-2026-12866CRITICAL
expr-eval vulnerable to Code Execution
- CVE-2019-11358MEDIUM
XSS in jQuery as used in Drupal, Backdrop CMS, and other products
- CVE-2021-41182MEDIUM
XSS in the `altField` option of the Datepicker widget in jquery-ui
- CVE-2021-41184MEDIUM
XSS in the `of` option of the `.position()` util in jquery-ui
- CVE-2020-11022MEDIUM
Potential XSS vulnerability in jQuery
- 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