Security mailing lists by PureSourceCode

CVE-2022-31160

MEDIUM 6.1CVSS 3.1

jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label

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.

Published
20 Jul 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-h6gj-6jjq-h8g9
Sources
NVDJSONOSV GHSA-h6gj-6jjq-h8g9JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jqueryui jquery_ui
cpe:2.3:a:jqueryui:jquery_ui:*:*:*:*:*:jquery:*:*
< 1.13.2 1.13.2
NVD netapp h300s_firmware
cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD netapp h500s_firmware
cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD netapp h700s_firmware
cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD netapp h410s_firmware
cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD netapp h410c_firmware
cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
(no version)
NVD netapp oncommand_insight
cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*
(no version)
NVD drupal jquery_ui_checkboxradio
cpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.0:*:*:*:*:drupal:*:*
= 8.x-1.0
NVD drupal jquery_ui_checkboxradio
cpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.1:*:*:*:*:drupal:*:*
= 8.x-1.1
NVD drupal jquery_ui_checkboxradio
cpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.2:*:*:*:*:drupal:*:*
= 8.x-1.2
NVD drupal jquery_ui_checkboxradio
cpe:2.3:a:drupal:jquery_ui_checkboxradio:8.x-1.3:*:*:*:*:drupal:*:*
= 8.x-1.3
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
= 36
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
= 37
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
OSV npm jquery-ui < 1.13.2 1.13.2
OSV Maven org.webjars.npm:jquery-ui < 1.13.2 1.13.2
OSV RubyGems jquery-ui-rails < 8.0.0 8.0.0
OSV NuGet jQuery.UI.Combined < 1.13.2 1.13.2

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 20 Jul 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jul 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.