VDB

CVE-2022-31160

CVE-2022-31160 PUBLISHED CVSS 6.1 MEDIUM

Reported by github_m · Published July 20, 2022

jquery-ui is fixed in 1.13.2 (npm)

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
jquery-uinpm1.13.2
jquery-ui-railsRubyGems8.0.0
jQuery.UI.CombinedNuGet1.13.2
org.webjars.npm:jquery-uiMaven Central1.13.2
jquery_uijqueryui1.13.2

Risk scores

CVSS 3.1
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
jqueryjquery-ui< 1.13.2
RubyGemsjquery-ui-rails0
NuGetjQuery.UI.Combined0
Mavenorg.webjars.npm:jquery-ui0
npmjquery-ui0
jqueryjquery-ui0

Timeline

  • Jul 18, 2022 CVE Published
  • Jul 21, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (10 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-31160
vulnetix vdb fixes CVE-2022-31160

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31160/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›