LiveActive security incident?Get immediate response
CVE Record

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

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

MediumCVSS 6.1Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-31160 is a medium-severity cross-site scripting issue in jQuery UI before 1.13.2. Under specific checkboxradio label handling, encoded HTML can be decoded during refresh and may execute script. Business risk is mainly for web applications that expose attacker-controlled or untrusted label content.

Executive priority

Treat this as a moderate web application hygiene issue. It is not flagged as actively exploited in the supplied evidence, but XSS can affect user trust and session integrity. Patch during the next normal security update cycle, faster for exposed applications with untrusted label content.

Technical view

The issue affects jquery-ui versions before 1.13.2. When a checkboxradio widget is initialized on an input enclosed by a label, the parent label content is treated as the input label. Refreshing the widget can incorrectly decode encoded HTML entities, creating a potential CWE-79 XSS condition.

Likely exposure

Exposure is most likely in web applications using jQuery UI checkboxradio before 1.13.2 with input elements wrapped by labels, especially where label HTML is templated, configurable, or user influenced. Downstream advisories show packaged or bundled copies may matter.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation. CVSS indicates network reachability, low attack complexity, no privileges, and required user interaction. Practical exploitation depends on control over initial HTML-like label content and vulnerable widget refresh behavior.

Researcher notes

Focus review on the checkboxradio refresh path and parent-label parsing behavior fixed in jQuery UI 1.13.2. Evidence supports the specific widget and label-decoding condition only; do not generalize this CVE to all jQuery UI usage without confirming the vulnerable pattern.

Mitigation direction

  • Upgrade jQuery UI to version 1.13.2 or later.
  • Inventory bundled, vendored, and package-managed jquery-ui copies.
  • If upgrade is delayed, wrap non-input label contents in a span as vendor guidance states.
  • Check downstream vendor advisories for platforms that bundle jQuery UI.
  • Prioritize internet-facing applications with configurable or user-influenced label content.

Validation and detection

  • Confirm deployed jquery-ui versions are 1.13.2 or later.
  • Search code for checkboxradio usage on inputs enclosed by labels.
  • Review whether label content can contain encoded HTML entities from untrusted sources.
  • Test affected UI flows that call checkboxradio refresh after remediation.
  • Verify package manager updates for Debian, Fedora, Drupal, or vendor-bundled copies where applicable.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31160 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.1 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.1CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N2.82.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.1Medium
CVSS 3.1 vector shape for CVE-2022-31160Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
jqueryjquery-ui< 1.13.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.