p PatchFirst

CVE-2022-31160

CVE-2022-31160 · jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label

CVSS 6.1 · Medium · EPSS 2.7% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="jqueryui"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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`.

Published
Updated

Fixes in distributions

  • USN-6419-1 · Ubuntu 20.04 LTS, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS ·
  • DLA-3230-1 · Debian 10 ·
  • USN-5181-1 · Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS ·

Stack: system · node · ruby

Affected products and versions

  • jquery-ui

    Versions
    • < 1.13.2: Affected

    No fix published

  • jqueryui Debian 12

    Affected ranges
    • ECOSYSTEM: < 1.13.2+dfsg-1

    Update to 1.13.2+dfsg-1

  • jqueryui Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.13.2+dfsg-1

    Update to 1.13.2+dfsg-1

  • jqueryui Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.13.2+dfsg-1

    Update to 1.13.2+dfsg-1

  • jquery-ui npm

    Affected ranges
    • SEMVER: < 1.13.2

    Update to 1.13.2

  • org.webjars.npm:jquery-ui Maven

    Versions
    • 1.10.4
    • 1.10.5
    • 1.12.0
    • 1.12.0-rc.2
    • 1.12.1
    • 1.13.0
    All versions (9)
    • 1.13.0-rc.2
    • 1.13.0-rc.3
    • 1.13.1
    Affected ranges
    • ECOSYSTEM: < 1.13.2

    Update to 1.13.2

  • jquery-ui-rails RubyGems

    Versions
    • 0.0.1
    • 0.0.2
    • 0.1.0
    • 0.2.0
    • 0.2.1
    • 0.2.2
    All versions (38)
    • 0.3.0
    • 0.4.0
    • 0.4.1
    • 0.5.0
    • 1.0.0
    • 1.1.0
    • 1.1.1
    • 2.0.0
    • 2.0.1
    • 2.0.2
    • 3.0.0
    • 3.0.1
    • 4.0.0
    • 4.0.1
    • 4.0.2
    • 4.0.3
    • 4.0.4
    • 4.0.5
    • 4.1.0
    • 4.1.1
    • 4.1.2
    • 4.2.0
    • 4.2.1
    • 5.0.0
    • 5.0.1
    • 5.0.2
    • 5.0.3
    • 5.0.4
    • 5.0.5
    • 6.0.0
    • 6.0.1
    • 7.0.0
    Affected ranges
    • ECOSYSTEM: < 8.0.0

    Update to 8.0.0

  • jquery.ui.combined NuGet

    Versions
    • 1.10.0
    • 1.10.1
    • 1.10.2
    • 1.10.3
    • 1.10.4
    • 1.11.0
    All versions (35)
    • 1.11.1
    • 1.11.2
    • 1.11.3
    • 1.11.4
    • 1.12.0
    • 1.12.1
    • 1.13.0
    • 1.13.1
    • 1.8.10
    • 1.8.11
    • 1.8.12
    • 1.8.13
    • 1.8.14
    • 1.8.15
    • 1.8.16
    • 1.8.17
    • 1.8.18
    • 1.8.19
    • 1.8.20
    • 1.8.20.1
    • 1.8.21
    • 1.8.22
    • 1.8.23
    • 1.8.24
    • 1.8.9
    • 1.9.0
    • 1.9.0-RC1
    • 1.9.1
    • 1.9.2
    Affected ranges
    • ECOSYSTEM: < 1.13.2

    Update to 1.13.2

  • jqueryui Ubuntu Pro 18.04 LTS

    Versions
    • 1.12.1+dfsg-5
    Affected ranges
    • ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.18.04.1~esm2

    Update to 1.12.1+dfsg-5ubuntu0.18.04.1~esm2

  • jqueryui Ubuntu 20.04 LTS

    Versions
    • 1.12.1+dfsg-5
    Affected ranges
    • ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.20.04.1

    Update to 1.12.1+dfsg-5ubuntu0.20.04.1

  • jqueryui Ubuntu Pro 20.04 LTS

    Versions
    • 1.12.1+dfsg-5
    • 1.12.1+dfsg-5ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: < 1.12.1+dfsg-5ubuntu0.20.04.1~esm3

    Update to 1.12.1+dfsg-5ubuntu0.20.04.1~esm3

  • jqueryui Ubuntu Pro 22.04 LTS

    Versions
    • 1.12.1+dfsg-8
    • 1.13.0+dfsg-1
    • 1.13.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: < 1.13.1+dfsg-1ubuntu0.1~esm1

    Update to 1.13.1+dfsg-1ubuntu0.1~esm1

Original sources

Check your server →