{"cve":"CVE-2022-31160","nvd":{"published":"2022-07-20T20:15:08.053","modified":"2026-06-17T04:44:55.850","status":"Modified","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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/","https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9","https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9","https://lists.debian.org/debian-lts-announce/2022/12/msg00015.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/"],"products":["debian:debian_linux","drupal:jquery_ui_checkboxradio","fedoraproject:fedora","jqueryui:jquery_ui","netapp:h300s_firmware","netapp:h410c_firmware","netapp:h410s_firmware","netapp:h500s_firmware","netapp:h700s_firmware","netapp:oncommand_insight"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31160","score":0.0269,"percentile":0.85879,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h6gj-6jjq-h8g9","url":"https://osv.dev/vulnerability/GHSA-h6gj-6jjq-h8g9","summary":"jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label","modified":"2025-07-21T19:01:07.439663Z","packages":[{"ecosystem":"npm","name":"jquery-ui","purl":"pkg:npm/jquery-ui","ranges":["<1.13.2"],"fixed":["1.13.2"]},{"ecosystem":"Maven","name":"org.webjars.npm:jquery-ui","purl":"pkg:maven/org.webjars.npm/jquery-ui","ranges":["<1.13.2"],"fixed":["1.13.2"]},{"ecosystem":"RubyGems","name":"jquery-ui-rails","purl":"pkg:gem/jquery-ui-rails","ranges":["<8.0.0"],"fixed":["8.0.0"]},{"ecosystem":"NuGet","name":"jQuery.UI.Combined","purl":"pkg:nuget/jQuery.UI.Combined","ranges":["<1.13.2"],"fixed":["1.13.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}