Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-31160

jqueryui: XSS when refreshing a checkboxradio with an HTML-like initial text label

Overview

Published
20 Jul 2022
Modified
17 Jun 2026
Medium CVE
4 Registry packages
4 OS packages
4 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

6.1 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-79

Affected packages · 4

Packages affected by CVE-2022-31160
EcosystemPackageVulnerableFixed in
Maven org.webjars.npm:jquery-ui <1.13.2 1.13.2
npm jquery-ui <1.13.2 1.13.2
NuGet jQuery.UI.Combined <1.13.2 1.13.2
RubyGems jquery-ui-rails <8.0.0 8.0.0

Open a package to see all its vulnerabilities.

Operating systems · 12 fixes

Red Hat 2 releases · 2 packages

affected 2
python-xstatic-jquery-ui python3-xstatic-jquery-ui
Red Hat fixes for CVE-2022-31160
ReleasePackageFixed in
7 python-xstatic-jquery-ui affected
8 python3-xstatic-jquery-ui +1 affected

debian 5 releases · 1 package

fixed 5
jqueryui
debian fixes for CVE-2022-31160
ReleasePackageFixed in
10 jqueryui 1.12.1+dfsg-5+deb10u1
11 jqueryui 1.12.1+dfsg-8+deb11u2
12 jqueryui 1.13.2+dfsg-1
13 jqueryui 1.13.2+dfsg-1
14 jqueryui 1.13.2+dfsg-1

echo 1 release · 1 package

fixed 1
jqueryui
echo fixes for CVE-2022-31160
ReleasePackageFixed in
jqueryui 1.13.2+dfsg-1

ubuntu 4 releases · 1 package

fixed 3 affected 1
jqueryui
ubuntu fixes for CVE-2022-31160
ReleasePackageFixed in
18.04-ESM jqueryui 1.12.1+dfsg-5ubuntu0.18.04.1~esm2
20.04 jqueryui 1.12.1+dfsg-5ubuntu0.20.04.1
20.04-ESM jqueryui 1.12.1+dfsg-5ubuntu0.20.04.1~esm3
22.04 jqueryui affected

References

Show all 27 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.