CVE-2022-31160
Reported by github_m · Published July 20, 2022
jquery-ui is fixed in 1.13.2 (npm)
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`.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| jquery-ui | npm | 1.13.2 |
| jquery-ui-rails | RubyGems | 8.0.0 |
| jQuery.UI.Combined | NuGet | 1.13.2 |
| org.webjars.npm:jquery-ui | Maven Central | 1.13.2 |
| jquery_ui | jqueryui | 1.13.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| jquery | jquery-ui | < 1.13.2 |
| RubyGems | jquery-ui-rails | 0 |
| NuGet | jQuery.UI.Combined | 0 |
| Maven | org.webjars.npm:jquery-ui | 0 |
| npm | jquery-ui | 0 |
| jquery | jquery-ui | 0 |
Timeline
- Jul 18, 2022 CVE Published
- Jul 21, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (10 in total, the first dated here)
- Jun 25, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-31160
vulnetix vdb fixes CVE-2022-31160
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31160/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-22d8ba36d0 vendor-advisory
- FEDORA-2022-1a01ed37e2 vendor-advisory
- FEDORA-2022-7291b78111 vendor-advisory
- [debian-lts-announce] 20221207 [SECURITY] [DLA 3230-1] jqueryui security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-31160 advisory
- https://github.com/advisories/GHSA-h6gj-6jjq-h8g9 advisory
- https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released url
- https://github.com/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.md url
- https://github.com/jquery-ui-rails/jquery-ui-rails/releases/tag/v8.0.0-release url
- https://github.com/jquery/jquery-ui url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2022-31160.yml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XBR3G3JR5ZIOJDO4224M3INXDS2VFDD url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5LGNTICB5BRFAG3DHVVELS6H3CZSQMO url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QB2FJQXCNHO32VGVOC6DY6IPGVE4VDU6 url
- https://security.netapp.com/advisory/ntap-20220909-0007 advisory