CVE-2022-31160Jqueryui Jquery Ui
Medium 6.1 No auth needed
Follow: this CVE · Jqueryui · Jqueryui Jquery Ui We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Jul 20, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( "refresh" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.
What to do
- Apply the vendor's security update for Jquery Ui.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.webjars.npm:jquery-ui |
< 1.13.2 |
1.13.2 |
— |
| NuGet | jQuery.UI.Combined |
< 1.13.2 |
1.13.2 |
dotnet add package jQuery.UI.Combined --version 1.13.2 |
| RubyGems | jquery-ui-rails |
< 8.0.0 |
8.0.0 |
gem "jquery-ui-rails", ">= 8.0.0" |
| npm | jquery-ui |
< 1.13.2 |
1.13.2 |
npm install jquery-ui@1.13.2 |
Per OSV / GitHub Advisories (GHSA-h6gj-6jjq-h8g9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| jqueryui | jquery_ui | < 1.13.2 |
| netapp | h300s_firmware | all |
| netapp | h500s_firmware | all |
| netapp | h700s_firmware | all |
| netapp | h410s_firmware | all |
| netapp | h410c_firmware | all |
| netapp | oncommand_insight | all |
| drupal | jquery_ui_checkboxradio | 8.x-1.0 |
| drupal | jquery_ui_checkboxradio | 8.x-1.1 |
| drupal | jquery_ui_checkboxradio | 8.x-1.2 |
| drupal | jquery_ui_checkboxradio | 8.x-1.3 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- blog.jqueryui.com Release Notes Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Mitigation Release Notes
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.drupal.org Third Party Advisory