CVEfocus › CVE database › CVE-2022-31160

CVE-2022-31160jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an…

CVSS 6.1 MediumEPSS 2.5% (higher than 86% of CVEs)Published 2022-07-20Updated 2025-04-22Assigner: GitHub_M

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

CWE-79

What to do

Fixed builds are available from Debian, Maven, RubyGems, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
4Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04jqueryuiNot affected
vulnerable_code_not_present
Ubuntu 25.10jqueryuiNot affected
vulnerable_code_not_present
Ubuntu 24.04jqueryuiNot affected
vulnerable_code_not_present
Ubuntu 22.04jqueryuiFix pending1.13.1+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-31160
Ubuntu 20.04jqueryuiFix pending1.12.1+dfsg-5ubuntu0.20.04.1 (Ubuntu Pro)UBUNTU-CVE-2022-31160
Ubuntu 18.04jqueryuiFix pending1.12.1+dfsg-5ubuntu0.18.04.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-31160
Ubuntu 16.04jqueryuiFix pending
Debian 14jqueryuiFixed1.13.2+dfsg-1DEBIAN-CVE-2022-31160
Debian 13jqueryuiFixed1.13.2+dfsg-1DEBIAN-CVE-2022-31160
Debian 12jqueryuiFixed1.13.2+dfsg-1DEBIAN-CVE-2022-31160
npm libraryjquery-uiFixed1.13.2GHSA-h6gj-6jjq-h8g9
RubyGems libraryjquery-ui-railsFixed8.0.0GHSA-h6gj-6jjq-h8g9
Maven libraryorg.webjars.npm:jquery-uiFixed1.13.2GHSA-h6gj-6jjq-h8g9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.