CVE-2022-31160
CVE-2022-31160 · jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label
CVSS 6.1 · Medium · EPSS 2.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- jquery-uiNo fix published
- jqueryui Debian 12Update to 1.13.2+dfsg-1
- jqueryui Debian 13Update to 1.13.2+dfsg-1
- jqueryui Debian 14Update to 1.13.2+dfsg-1
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="jqueryui"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- USN-6419-1 · Ubuntu 20.04 LTS, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS ·
- DLA-3230-1 · Debian 10 ·
- USN-5181-1 · Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS ·
Affected products and versions
jquery-ui
- Versions
- < 1.13.2: Affected
No fix published
jqueryui Debian 12
- Affected ranges
- ECOSYSTEM: < 1.13.2+dfsg-1
Update to 1.13.2+dfsg-1
jqueryui Debian 13
- Affected ranges
- ECOSYSTEM: < 1.13.2+dfsg-1
Update to 1.13.2+dfsg-1
jqueryui Debian 14
- Affected ranges
- ECOSYSTEM: < 1.13.2+dfsg-1
Update to 1.13.2+dfsg-1
jquery-ui npm
- Affected ranges
- SEMVER: < 1.13.2
Update to 1.13.2
org.webjars.npm:jquery-ui Maven
- Versions
- 1.10.4
- 1.10.5
- 1.12.0
- 1.12.0-rc.2
- 1.12.1
- 1.13.0
All versions (9)
- 1.13.0-rc.2
- 1.13.0-rc.3
- 1.13.1
- Affected ranges
- ECOSYSTEM: < 1.13.2
Update to 1.13.2
jquery-ui-rails RubyGems
- Versions
- 0.0.1
- 0.0.2
- 0.1.0
- 0.2.0
- 0.2.1
- 0.2.2
All versions (38)
- 0.3.0
- 0.4.0
- 0.4.1
- 0.5.0
- 1.0.0
- 1.1.0
- 1.1.1
- 2.0.0
- 2.0.1
- 2.0.2
- 3.0.0
- 3.0.1
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 6.0.0
- 6.0.1
- 7.0.0
- Affected ranges
- ECOSYSTEM: < 8.0.0
Update to 8.0.0
jquery.ui.combined NuGet
- Versions
- 1.10.0
- 1.10.1
- 1.10.2
- 1.10.3
- 1.10.4
- 1.11.0
All versions (35)
- 1.11.1
- 1.11.2
- 1.11.3
- 1.11.4
- 1.12.0
- 1.12.1
- 1.13.0
- 1.13.1
- 1.8.10
- 1.8.11
- 1.8.12
- 1.8.13
- 1.8.14
- 1.8.15
- 1.8.16
- 1.8.17
- 1.8.18
- 1.8.19
- 1.8.20
- 1.8.20.1
- 1.8.21
- 1.8.22
- 1.8.23
- 1.8.24
- 1.8.9
- 1.9.0
- 1.9.0-RC1
- 1.9.1
- 1.9.2
- Affected ranges
- ECOSYSTEM: < 1.13.2
Update to 1.13.2
jqueryui Ubuntu Pro 18.04 LTS
- Versions
- 1.12.1+dfsg-5
- Affected ranges
- ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.18.04.1~esm2
Update to 1.12.1+dfsg-5ubuntu0.18.04.1~esm2
jqueryui Ubuntu 20.04 LTS
- Versions
- 1.12.1+dfsg-5
- Affected ranges
- ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.20.04.1
Update to 1.12.1+dfsg-5ubuntu0.20.04.1
jqueryui Ubuntu Pro 20.04 LTS
- Versions
- 1.12.1+dfsg-5
- 1.12.1+dfsg-5ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.20.04.1~esm3
Update to 1.12.1+dfsg-5ubuntu0.20.04.1~esm3
jqueryui Ubuntu Pro 22.04 LTS
- Versions
- 1.12.1+dfsg-8
- 1.13.0+dfsg-1
- 1.13.1+dfsg-1
- Affected ranges
- ECOSYSTEM: < 1.13.1+dfsg-1ubuntu0.1~esm1
Update to 1.13.1+dfsg-1ubuntu0.1~esm1
Original sources
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9
- https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9
- https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/
- https://www.drupal.org/sa-contrib-2022-052
- https://security.netapp.com/advisory/ntap-20220909-0007/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/
- 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.debian.org/debian-lts-announce/2022/12/msg00015.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-31160