CVE-2022-31160
MEDIUM 6.1CVSS 3.1jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label
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.
- Published
- 20 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-h6gj-6jjq-h8g9
- Sources
- NVDJSONOSV GHSA-h6gj-6jjq-h8g9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jqueryui | jquery_uicpe:2.3:a:jqueryui:jquery_ui:*:*:*:*:*:jquery:*:* |
< 1.13.2 | 1.13.2 |
| NVD | netapp | h300s_firmwarecpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | h500s_firmwarecpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | h700s_firmwarecpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | h410s_firmwarecpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | h410c_firmwarecpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | oncommand_insightcpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | drupal | jquery_ui_checkboxradiocpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.0:*:*:*:*:drupal:*:* |
= 8.x-1.0 | |
| NVD | drupal | jquery_ui_checkboxradiocpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.1:*:*:*:*:drupal:*:* |
= 8.x-1.1 | |
| NVD | drupal | jquery_ui_checkboxradiocpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.2:*:*:*:*:drupal:*:* |
= 8.x-1.2 | |
| NVD | drupal | jquery_ui_checkboxradiocpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.3:*:*:*:*:drupal:*:* |
= 8.x-1.3 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | npm | jquery-ui | < 1.13.2 | 1.13.2 |
| OSV | Maven | org.webjars.npm:jquery-ui | < 1.13.2 | 1.13.2 |
| OSV | RubyGems | jquery-ui-rails | < 8.0.0 | 8.0.0 |
| OSV | NuGet | jQuery.UI.Combined | < 1.13.2 | 1.13.2 |
References
- https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/ · Release Notes, Vendor Advisory, WEB
- https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9 · Patch, Third Party Advisory, WEB
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9 · Exploit, Mitigation, Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/12/msg00015.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/
- https://security.netapp.com/advisory/ntap-20220909-0007/ · Third Party Advisory, WEB
- https://www.drupal.org/sa-contrib-2022-052 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31160 · ADVISORY
- https://github.com/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.md · WEB
- https://github.com/jquery-ui-rails/jquery-ui-rails/releases/tag/v8.0.0-release · WEB
- https://github.com/jquery/jquery-ui · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2022-31160.yml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 20 Jul 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jul 2022)