{"id":"CVE-2022-31160","published":"2022-07-20T00:00:00Z","modified":"2025-04-22T17:48:33Z","title":"jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label","vendor":"jquery","product":"jquery-ui","tier":"tail","description":{"text":"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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0269,"percentile":0.8623,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9","tags":[]},{"url":"https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9","tags":[]},{"url":"https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/","tags":[]},{"url":"https://www.drupal.org/sa-contrib-2022-052","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0007/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00015.html","tags":["mailing-list"]}],"priority":{"score":26.5,"factors":[{"name":"EPSS percentile","points":17.25},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.27}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-08-12","earliestUrl":"https://github.com/CyberOne-TeamARES/jquery-cve-2022-31160","repos":[{"name":"CyberOne-TeamARES/jquery-cve-2022-31160","url":"https://github.com/CyberOne-TeamARES/jquery-cve-2022-31160","stars":0,"created":"2025-08-12"}]},"first":{"date":"2025-08-12","source":"PoC-in-GitHub","url":"https://github.com/CyberOne-TeamARES/jquery-cve-2022-31160"},"provenance":"source"},"vendorSlug":"jquery","affectedVersions":[{"vendor":"jquery","product":"jquery-ui","versions":["< 1.13.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:45:27.686746Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jquery-ui","vulnerableRanges":["<1.13.2"],"patched":["1.13.2"],"from":["GHSA-h6gj-6jjq-h8g9"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","vulnerableRanges":["<1.13.2"],"patched":["1.13.2"],"from":["GHSA-h6gj-6jjq-h8g9"],"provenance":"source"},{"ecosystem":"RubyGems","package":"jquery-ui-rails","vulnerableRanges":["<8.0.0"],"patched":["8.0.0"],"from":["GHSA-h6gj-6jjq-h8g9"],"provenance":"source"},{"ecosystem":"NuGet","package":"jQuery.UI.Combined","vulnerableRanges":["<1.13.2"],"patched":["1.13.2"],"from":["GHSA-h6gj-6jjq-h8g9"],"provenance":"source"}],"summary":{"text":"The jQuery UI library (product jquery-ui, from vendor jquery) contains a flaw in its checkboxradio widget: when a checkboxradio is initialized on an input inside a label, calling .checkboxradio(\"refresh\") causes HTML entities in the label's initial text to be decoded, which can lead to cross-site scripting. An attacker can cause JavaScript to execute in a victim's browser by supplying crafted label content, requiring only network access and a user interaction, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:28Z"},"euvd":{"id":"EUVD-2022-6344","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41182","published":"2021-10-26","fixed":"1.13.0","kev":false},{"cve":"CVE-2021-41183","published":"2021-10-26","fixed":"1.13.0","kev":false},{"cve":"CVE-2021-41184","published":"2021-10-26","fixed":"1.13.0","kev":false,"link":{"from":"CVE-2021-41184","to":"CVE-2022-31160","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jquery-ui","fromFixed":"1.13.0","toFixed":"1.13.2","daysApart":267},{"kind":"version-step","provenance":"source","package":"Maven:org.webjars.npm:jquery-ui","fromFixed":"1.13.0","toFixed":"1.13.2","daysApart":267}]}},{"cve":"CVE-2022-31160","published":"2022-07-20","fixed":"1.13.2","kev":false}],"package":"npm:jquery-ui"}}