XSS in Drupal Jquery Ui Checkboxradio

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

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.026 (84.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-31160?
CVE-2022-31160 is a medium-severity vulnerability in Drupal Jquery Ui Checkboxradio, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2022-07-20.
How severe is CVE-2022-31160?
Medium severity. CVSS v3 base score is 6.1 out of 10.
Is CVE-2022-31160 known to be exploited?
7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.