The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-31160

CVE-2022-31160: jQuery UI Checkboxradio Widget XSS Flaw

CVE-2022-31160 is a cross-site scripting vulnerability in jQuery UI's checkboxradio widget that decodes HTML entities incorrectly, potentially executing malicious JavaScript. This article covers technical details, versions prior to 1.13.2, impact analysis, and recommended mitigation strategies.

Published: February 17, 2026

CVE-2022-31160 Overview

CVE-2022-31160 is a Cross-Site Scripting (XSS) vulnerability in jQuery UI, a widely-used JavaScript library that provides a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are vulnerable to this security flaw which affects the checkboxradio widget component.

The vulnerability occurs when initializing a checkboxradio widget on an input element enclosed within a label tag. When .checkboxradio("refresh") is called on such a widget and the initial HTML contains encoded HTML entities, these entities are erroneously decoded. This improper handling of encoded content can lead to the execution of arbitrary JavaScript code in the context of the victim's browser session.

Critical Impact

This XSS vulnerability can allow attackers to inject and execute malicious JavaScript code in users' browsers, potentially enabling session hijacking, credential theft, defacement, or malware distribution through affected web applications using vulnerable jQuery UI versions.

Affected Products

  • jQuery UI versions prior to 1.13.2
  • Drupal jQuery UI Checkboxradio module (versions 8.x-1.0 through 8.x-1.3)
  • NetApp H300S, H500S, H700S, H410S, and H410C firmware
  • NetApp OnCommand Insight
  • Fedora 35, 36, and 37
  • Debian Linux 10.0

Discovery Timeline

  • 2022-07-20 - CVE-2022-31160 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-31160

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw exists in the checkboxradio widget's handling of label content when the widget is refreshed.

When a checkboxradio widget is initialized on an input element that is nested within a label element, jQuery UI considers the parent label's contents as the input's label text. The vulnerability manifests during the widget refresh operation: if the original HTML contained encoded HTML entities (such as <script>), the refresh process incorrectly decodes these entities back to their original characters, potentially converting harmless encoded strings into executable script elements.

This behavior represents a failure in maintaining proper output encoding during the widget lifecycle, allowing attackers to craft malicious HTML that appears safe when initially rendered but becomes dangerous upon widget refresh.

Root Cause

The root cause lies in how the checkboxradio widget processes label text during refresh operations. When _getCreateOptions is called, the widget retrieves and processes label contents without properly preserving the encoded state of HTML entities. The original implementation failed to distinguish between safe text content and potentially dangerous decoded HTML when re-evaluating label contents.

The fix introduced changes to the ui/widgets/checkboxradio.js file, specifically addressing how label contents are retrieved and processed to prevent the re-evaluation of text labels as HTML.

Attack Vector

An attacker can exploit this vulnerability through the following attack flow:

  1. The attacker identifies a web application using a vulnerable version of jQuery UI with checkboxradio widgets
  2. The attacker crafts or influences HTML content containing encoded malicious JavaScript within a label element surrounding a checkbox or radio input
  3. When a user interacts with the application and triggers a .checkboxradio("refresh") call, the encoded entities are decoded
  4. The decoded malicious script executes in the user's browser context with full access to the DOM and session cookies

This attack requires user interaction (visiting the malicious page) and a change in scope is possible as the injected script can affect resources beyond the vulnerable component.

javascript
// Security patch in ui/widgets/checkboxradio.js - Checkboxradio: Don't re-evaluate text labels as HTML
 	},
 
 	_getCreateOptions: function() {
-		var disabled, labels;
-		var that = this;
+		var disabled, labels, labelContents;
 		var options = this._super() || {};
 
 		// We read the type here, because it makes more sense to throw a element type error first,

Source: GitHub jQuery UI Commit

Detection Methods for CVE-2022-31160

Indicators of Compromise

  • Unexpected JavaScript execution on pages containing checkboxradio widgets
  • Unusual DOM modifications after checkbox or radio button interactions
  • Client-side errors related to jQuery UI widget refresh operations
  • Reports of session hijacking or credential theft from application users

Detection Strategies

  • Audit all JavaScript dependencies for jQuery UI versions below 1.13.2 using software composition analysis (SCA) tools
  • Monitor Content Security Policy (CSP) violation reports for inline script execution attempts
  • Review application logs for patterns indicating XSS exploitation attempts targeting form elements
  • Implement browser-based XSS detection through security headers and client-side monitoring

Monitoring Recommendations

  • Enable CSP reporting to capture attempted script injections on pages with jQuery UI widgets
  • Deploy web application firewalls (WAF) with rules to detect common XSS payload patterns
  • Monitor for anomalous client-side behavior using Real User Monitoring (RUM) solutions
  • Track package versions across your application portfolio to identify affected deployments

How to Mitigate CVE-2022-31160

Immediate Actions Required

  • Upgrade jQuery UI to version 1.13.2 or later across all affected applications
  • For Drupal sites, update the jQuery UI Checkboxradio module to the patched version
  • Conduct an inventory of all web applications and components using jQuery UI
  • Apply vendor-specific patches for NetApp, Fedora, and Debian systems as available

Patch Information

jQuery UI has released version 1.13.2 which addresses this vulnerability. The fix modifies how the checkboxradio widget handles label contents to prevent HTML entity decoding during refresh operations. Organizations should prioritize updating to this version or later.

For detailed patch information, refer to the jQuery UI Release Announcement and the GitHub Security Advisory.

Additional vendor-specific advisories:

  • NetApp Security Advisory
  • Drupal Security Advisory
  • Debian LTS Announcement

Workarounds

  • Wrap all non-input contents within checkboxradio labels in a <span> element to prevent direct label content processing
  • Implement Content Security Policy headers to restrict inline script execution as a defense-in-depth measure
  • Sanitize user-controlled content that may appear in label elements before rendering
  • Avoid using the .checkboxradio("refresh") method on widgets with potentially untrusted label content until patched
html
<!-- Workaround: Wrap label contents in a span -->
<label>
  <input type="checkbox" name="example">
  <span>Safe label text here</span>
</label>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJquery Ui

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability10.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Drupal Security Advisory
  • Vendor Resources
  • jQuery UI Release Announcement

  • GitHub jQuery UI Commit

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2021-41184: jQuery UI XSS Vulnerability

  • CVE-2021-41183: jQuery UI Datepicker XSS Vulnerability

  • CVE-2024-30875: jQuery UI v.1.13.1 XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English