Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2022-31160 EUVD-2022-6344GHSA-h6gj-6jjq-h8g9

jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label

Published Jul 20, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

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`.

Affected products

VendorProductAffectedFixed
jquery jquery-ui < 1.13.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jqueryui 1.13.2+dfsg-1 —
Debian 13 jqueryui 1.13.2+dfsg-1 —
Debian 12 jqueryui 1.13.2+dfsg-1 —
Debian 10 jqueryui 1.12.1+dfsg-5+deb10u1 DLA-3230-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS jqueryui 1.12.1+dfsg-5ubuntu0.20.04.1 USN-6419-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS jqueryui 1.13.1+dfsg-1ubuntu0.1~esm1 USN-5181-1
Ubuntu Pro 20.04 LTS jqueryui 1.12.1+dfsg-5ubuntu0.20.04.1~esm3 USN-5181-1
Ubuntu Pro 18.04 LTS jqueryui 1.12.1+dfsg-5ubuntu0.18.04.1~esm2 USN-6419-1, USN-5181-1
Ubuntu Pro 16.04 LTS jqueryui 1.10.1+dfsg-1ubuntu0.16.04.1~esm1 USN-6419-1
Ubuntu Pro 14.04 LTS jqueryui 1.10.1+dfsg-1ubuntu0.14.04.1~esm1 USN-6419-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars.npm:jquery-ui < 1.13.2 1.13.2 GHSA-h6gj-6jjq-h8g9
npm jquery-ui < 1.13.2 1.13.2 GHSA-h6gj-6jjq-h8g9
NuGet jQuery.UI.Combined < 1.13.2 1.13.2 GHSA-h6gj-6jjq-h8g9
RubyGems jquery-ui-rails < 8.0.0 8.0.0 GHSA-h6gj-6jjq-h8g9

Advisories 19

References