CVE-2022-31160 json
jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label
published 2022-07-18 4 y ago modified 2026-06-17 4 mo ago also GHSA-h6gj-6jjq-h8g9 , EUVD-2022-6344
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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`.
Patch / fix
- npm jquery-ui 1.13.2
- maven org.webjars.npm:jquery-ui 1.13.2
- rubygems jquery-ui-rails 8.0.0
- nuget jQuery.UI.Combined 1.13.2
- jqueryui jquery_ui 1.13.2
- jqueryui Debian 14, Debian 13, Debian 12 1.13.2+dfsg-1
debian advisories DEBIAN-CVE-2022-31160
- jqueryui Ubuntu 20.04 LTS 1.12.1+dfsg-5ubuntu0.20.04.1
- jqueryui Ubuntu Pro 18.04 LTS 1.12.1+dfsg-5ubuntu0.18.04.1~esm2
- jqueryui Ubuntu Pro 20.04 LTS 1.12.1+dfsg-5ubuntu0.20.04.1~esm3
- jqueryui Ubuntu Pro 22.04 LTS 1.13.1+dfsg-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-31160
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31160 updated cvss 6.1
jqueryui: XSS when refreshing a checkboxradio with an HTML-like initial text label
-
Red Hat Fuse 7 swagger-ui, hawtio hawtio Red Hat OpenStack Platform 13 (Queens) python-XStatic-jquery-ui Red Hat OpenStack Platform 16.1 xstatic-jquery-ui-common, python3-XStatic-jquery-ui Red Hat OpenStack Platform 16.2 xstatic-jquery-ui-common, python3-XStatic-jquery-uiaffected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
2.69% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | jquery-ui | <1.13.2 |
1.13.2 |
| maven | org.webjars.npm:jquery-ui | <1.13.2 |
1.13.2 |
| rubygems | jquery-ui-rails | <8.0.0 |
8.0.0 |
| nuget | jQuery.UI.Combined | <1.13.2 |
1.13.2 |
Affected products
- jquery jquery-ui
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9
web, patch, third-party-advisory
-
github.com
/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9
web, exploit, mitigation, release-notes, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO/
vendor-advisory
-
blog.jqueryui.com
/2022/07/jquery-ui-1-13-2-released/
release-notes, vendor-advisory
-
drupal.org
/sa-contrib-2022-052
web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20220909-0007/
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/12/msg00015.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31160
advisory
-
blog.jqueryui.com
/2022/07/jquery-ui-1-13-2-released
web
-
github.com
/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.md
web
-
github.com
/jquery-ui-rails/jquery-ui-rails/releases/tag/v8.0.0-release
web
-
github.com
/jquery/jquery-ui
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2022-31160.yml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6
web
-
security.netapp.com
/advisory/ntap-20220909-0007
web
Sources
- CVE List CVE-2022-31160
- GitHub Advisory GHSA-h6gj-6jjq-h8g9
- NVD CVE-2022-31160
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.