CVE-2022-31160
jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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`.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 2 months later
· 2 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 2.7% · top 14% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.webjars.npm:jquery-uiGHSA-h6gj-6jjq-h8g9 (opens in a new tab)
- NuGetjQuery.UI.CombinedGHSA-h6gj-6jjq-h8g9 (opens in a new tab)
- RubyGemsjquery-ui-railsGHSA-h6gj-6jjq-h8g9 (opens in a new tab)
- npmjquery-uiGHSA-h6gj-6jjq-h8g9 (opens in a new tab)
References (9)
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9 (opens in a new tab)x_transferred
- https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9 (opens in a new tab)x_transferred
- https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/ (opens in a new tab)x_transferred
- https://www.drupal.org/sa-contrib-2022-052 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20220909-0007/ (opens in a new tab)x_transferred
- FEDORA-2022-22d8ba36d0 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-1a01ed37e2 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-7291b78111 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20221207 [SECURITY] [DLA 3230-1] jqueryui security update (opens in a new tab)mailing-listx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-h6gj-6jjq-h8g9 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-31160)Record last updated .