CVE-2022-31160
jqueryui: XSS when refreshing a checkboxradio with an HTML-like initial text label
Overview
Description
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.
Source: OX vulnerability database
Severity
6.1 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Maven | org.webjars.npm:jquery-ui | <1.13.2 | 1.13.2 |
| npm | jquery-ui | <1.13.2 | 1.13.2 |
| NuGet | jQuery.UI.Combined | <1.13.2 | 1.13.2 |
| RubyGems | jquery-ui-rails | <8.0.0 | 8.0.0 |
Open a package to see all its vulnerabilities.
Operating systems · 12 fixes
Red Hat 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-xstatic-jquery-ui | affected |
| 8 | python3-xstatic-jquery-ui +1 | affected |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | jqueryui | 1.12.1+dfsg-5+deb10u1 |
| 11 | jqueryui | 1.12.1+dfsg-8+deb11u2 |
| 12 | jqueryui | 1.13.2+dfsg-1 |
| 13 | jqueryui | 1.13.2+dfsg-1 |
| 14 | jqueryui | 1.13.2+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jqueryui | 1.13.2+dfsg-1 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | jqueryui | 1.12.1+dfsg-5ubuntu0.18.04.1~esm2 |
| 20.04 | jqueryui | 1.12.1+dfsg-5ubuntu0.20.04.1 |
| 20.04-ESM | jqueryui | 1.12.1+dfsg-5ubuntu0.20.04.1~esm3 |
| 22.04 | jqueryui | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-31160
- blog.jqueryui.com https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released
- blog.jqueryui.com https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/
- github.com https://github.com/advisories/GHSA-h6gj-6jjq-h8g9
- github.com https://github.com/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.md
- github.com https://github.com/jquery-ui-rails/jquery-ui-rails/releases/tag/v8.0.0-release
- github.com https://github.com/jquery/jquery-ui
- github.com https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9
- github.com https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2022-31160.yml
Show all 27 references
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/12/msg00015.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-31160
- security.netapp.com https://security.netapp.com/advisory/ntap-20220909-0007
- security.netapp.com https://security.netapp.com/advisory/ntap-20220909-0007/
- ubuntu.com https://ubuntu.com/security/notices/USN-5181-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6419-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-31160
- www.drupal.org https://www.drupal.org/sa-contrib-2022-052
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.