CVE-2022-31160
Fixed in a distro release EPSS 3%CVSS 6.1
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`.
Products: jquery-ui
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Maven | org.webjars.npm:jquery-ui | 1.13.2 |
| NuGet | jQuery.UI.Combined | 1.13.2 |
| RubyGems | jquery-ui-rails | 8.0.0 |
| npm | jquery-ui | 1.13.2 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 10 | jqueryui | 1.12.1+dfsg-5+deb10u1 |
| Debian 12 | jqueryui | 1.13.2+dfsg-1 |
| Debian 13 | jqueryui | 1.13.2+dfsg-1 |
| Debian 14 | jqueryui | 1.13.2+dfsg-1 |
| Ubuntu 20.04 LTS | jqueryui | 1.12.1+dfsg-5ubuntu0.20.04.1 |
| Ubuntu Pro 14.04 LTS | jqueryui | 1.10.1+dfsg-1ubuntu0.14.04.1~esm1 |
| Ubuntu Pro 16.04 LTS | jqueryui | 1.10.1+dfsg-1ubuntu0.16.04.1~esm1 |
| Ubuntu Pro 18.04 LTS | jqueryui | 1.12.1+dfsg-5ubuntu0.18.04.1~esm2 |
| Ubuntu Pro 18.04 LTS | jqueryui | 1.12.1+dfsg-5ubuntu0.18.04.1~esm3 |
| Ubuntu Pro 20.04 LTS | jqueryui | 1.12.1+dfsg-5ubuntu0.20.04.1~esm3 |
| Ubuntu Pro 22.04 LTS | jqueryui | 1.13.1+dfsg-1ubuntu0.1~esm1 |