Skip to main content
Public proof of conceptFix available

CVE-2022-31160

A public proof of concept exists; no exploitation attested.

  • Published2022-07-20
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2022-07-2020:15CVE publishedNVD

Versions per branch

NVD
Drupal jquery ui checkboxradio
BranchAffectedFixed in
8.x= 8.x-1.0no fix published
8.x= 8.x-1.1no fix published
8.x= 8.x-1.2no fix published
8.x= 8.x-1.3no fix published
Fedoraproject fedora
BranchAffectedFixed in
35.x= 35no fix published
36.x= 36no fix published
37.x= 37no fix published
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published

8 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • jquery-ui
    Affected
    • = < 1.13.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-12-07

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • jquery-uiTuxCare:npmfrom 1.10.4-tuxcare.0 · fixed in 1.10.4-tuxcare.1
  • jquery-uiTuxCare:npmfrom 1.10.3-tuxcare.0 · fixed in 1.10.3-tuxcare.1
  • jquery-uiTuxCare:npmfrom 1.12.1-tuxcare.0 · fixed in 1.12.1-tuxcare.1
  • jqueryuiUbuntu:Pro:22.04:LTSall versions · fixed in 1.13.1+dfsg-1ubuntu0.1~esm1
  • jqueryuiUbuntu:Pro:20.04:LTSall versions · fixed in 1.12.1+dfsg-5ubuntu0.20.04.1~esm3
  • jqueryuiUbuntu:Pro:18.04:LTSall versions · fixed in 1.12.1+dfsg-5ubuntu0.18.04.1~esm2
  • jqueryuiUbuntu:Pro:18.04:LTSall versions · fixed in 1.12.1+dfsg-5ubuntu0.18.04.1~esm3
  • jqueryuiUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.1+dfsg-1ubuntu0.16.04.1~esm1

7 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-31160 Red Hat Product Security7 known affected

    jqueryui: XSS when refreshing a checkboxradio with an HTML-like initial text label

    hawtio as a component of Red Hat Fuse 7 · swagger-ui as a component of Red Hat Fuse 7 · python-XStatic-jquery-ui.src as a component of Red Hat OpenStack Platform 13 (Queens) · +4 more

Full record on NVD

Fix

  1. No fix available, says the vendor Red Hat Product Security CVE-2022-31160 · 7 productsAffected

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2022-07-20
Last modified
2025-04-22
NVD status
Modified
GitHub advisory
GHSA-h6gj-6jjq-h8g9

Frequently asked questions

What is CVE-2022-31160?

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

Is CVE-2022-31160 actively exploited?

A proof-of-concept exploit exists for CVE-2022-31160, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-31160?

CVE-2022-31160 has a CVSS v3 base score of 6.1 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running jqueryui? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record