Bug 2110705 (CVE-2022-31160) - CVE-2022-31160 jqueryui: XSS when refreshing a checkboxradio with an HTML-like initial text label
Summary: CVE-2022-31160 jqueryui: XSS when refreshing a checkboxradio with an HTML-lik...
Status: NEW
Alias: CVE-2022-31160
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nobody
QA Contact:
Depends On: 2110707 2110709 2110706 2110708 2110959 2110960 2110961
Blocks: 2110712
TreeView+ depends on / blocked
Reported: 2022-07-25 18:03 UTC by Anten Skrabec
Modified: 2023-09-21 13:40 UTC (History)
18 users (show)

Fixed In Version: jquery-ui 1.13.2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the jquery-UI package. Affected versions of this package are vulnerable to Cross-site scripting (XSS) attack via the initialization of a check-box-radio widget on an input tag enclosed within a label, leading to the parent label contents being considered as the input label.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Anten Skrabec 2022-07-25 18:03:37 UTC
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`.


Comment 1 Anten Skrabec 2022-07-25 18:04:01 UTC
Created js-jquery-ui tracking bugs for this issue:

Affects: epel-all [bug 2110706]
Affects: fedora-all [bug 2110708]

Created python-XStatic-jquery-ui tracking bugs for this issue:

Affects: epel-all [bug 2110707]
Affects: openstack-rdo [bug 2110709]

Note You need to log in before you can comment on or make changes to this bug.