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-2021-41184

CVE-2021-41184: jQuery UI XSS Vulnerability

CVE-2021-41184 is an XSS vulnerability in jQuery UI affecting versions prior to 1.13.0. Untrusted input in the position() util's of option can execute malicious code. This article covers technical details, impact, and mitigation.

Published: February 25, 2026

CVE-2021-41184 Overview

CVE-2021-41184 is a Cross-Site Scripting (XSS) vulnerability in jQuery-UI, the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the of option of the .position() utility from untrusted sources may execute untrusted code. The vulnerability allows attackers to inject malicious scripts when the of option is passed with attacker-controlled input, as the library incorrectly processed string values without treating them as CSS selectors.

Critical Impact

Applications using jQuery-UI versions prior to 1.13.0 that accept user-controlled input for the .position() utility's of option are vulnerable to XSS attacks, potentially leading to session hijacking, credential theft, and malicious content injection.

Affected Products

  • jQuery UI versions prior to 1.13.0
  • Drupal (multiple versions)
  • Fedora 33, 34, 35, 36
  • NetApp H300S, H500S, H700S, H300E, H500E, H700E, H410S, H410C firmware
  • Oracle WebLogic Server 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0
  • Oracle Application Express
  • Oracle PeopleSoft Enterprise PeopleTools 8.58, 8.59
  • Tenable.sc

Discovery Timeline

  • October 26, 2021 - CVE-2021-41184 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2021-41184

Vulnerability Analysis

This Cross-Site Scripting vulnerability exists in the .position() utility function within jQuery-UI. The root issue stems from how the library handles the of option parameter, which specifies the element that the positioned element should be positioned relative to. When a string value was passed to this option, it was directly passed to the jQuery selector function without proper sanitization, allowing the execution of arbitrary JavaScript code.

The vulnerability is particularly concerning because jQuery's selector function historically allowed executing inline JavaScript through certain selector patterns. An attacker who can control the value passed to the of option can inject malicious script content that will be executed in the context of the victim's browser session.

Root Cause

The vulnerability originated from insufficient input validation in the position utility's handling of the of option. When a string was provided, it was directly wrapped with $() without first validating that it should be treated as a CSS selector. This behavior allowed HTML strings containing script elements to be parsed and executed rather than treated as selector queries.

Attack Vector

The attack requires user interaction, as the victim must visit a page where the vulnerable .position() function is called with attacker-controlled input. The attack vector is network-based, targeting web applications that:

  1. Use jQuery-UI versions prior to 1.13.0
  2. Accept user input that is passed to the .position() utility's of option
  3. Do not sanitize the input before passing it to the function
javascript
 	options = $.extend( {}, options );
 
 	var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
-		target = $( options.of ),
+
+		// Make sure string options are treated as CSS selectors
+		target = typeof options.of === "string" ?
+			$( document ).find( options.of ) :
+			$( options.of ),
+
 		within = $.position.getWithinInfo( options.within ),
 		scrollInfo = $.position.getScrollInfo( within ),
 		collision = ( options.collision || "flip" ).split( " " ),

Source: jQuery UI Security Patch Commit

The fix ensures that string values passed to the of option are explicitly treated as CSS selectors using $( document ).find() rather than being passed directly to the jQuery constructor, which could interpret them as HTML.

Detection Methods for CVE-2021-41184

Indicators of Compromise

  • Unusual JavaScript execution patterns in web application logs associated with UI positioning functions
  • Web application firewall logs showing attempts to inject script tags or event handlers in URL parameters or form fields
  • Client-side error logs indicating unexpected HTML parsing in jQuery selector contexts
  • Browser console errors related to position utility failures after injection attempts

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script execution
  • Monitor web application logs for suspicious input patterns containing HTML or JavaScript in UI-related parameters
  • Use browser developer tools to audit calls to .position() and verify the source of the of parameter
  • Deploy web application firewalls with rules to detect XSS payloads targeting jQuery-UI functions

Monitoring Recommendations

  • Enable client-side JavaScript error monitoring to capture anomalous behavior in jQuery-UI functions
  • Implement runtime application self-protection (RASP) to detect and block XSS exploitation attempts
  • Review application code for instances where user input is passed to .position() without sanitization
  • Monitor for dependency version information to ensure jQuery-UI has been updated to 1.13.0 or later

How to Mitigate CVE-2021-41184

Immediate Actions Required

  • Update jQuery-UI to version 1.13.0 or later immediately
  • Audit application code to identify all usages of the .position() utility's of option
  • Implement input validation to ensure only CSS selectors or DOM elements are passed to the of option
  • Deploy Content Security Policy headers to mitigate the impact of potential XSS exploitation

Patch Information

The vulnerability is fixed in jQuery UI version 1.13.0. Organizations should upgrade to this version or later. The security fix ensures that any string value passed to the of option is now treated strictly as a CSS selector using $( document ).find() rather than being passed directly to the jQuery constructor.

For detailed patch information, refer to the jQuery UI 1.13.0 Release or the GitHub Security Advisory GHSA-gpqq-952q-5327.

Downstream vendors have also released patches:

  • Drupal Security Advisory SA-CORE-2022-001
  • Oracle Security Alert CPUAPR2022
  • Tenable Security Advisory TNS-2022-09

Workarounds

  • Do not accept the value of the of option from untrusted sources until the upgrade is applied
  • Sanitize all user input before passing it to jQuery-UI's .position() function
  • Use DOM elements directly instead of string selectors when calling .position() with user-influenced parameters
  • Implement strict Content Security Policy headers to limit script execution sources
bash
# Configuration example - Content Security Policy Header
# Add to web server configuration (Apache example)
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# Nginx example
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'";

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 Probability22.09%

  • 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 Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20211118-0004

  • Drupal Security Advisory SA-CORE-2022-001

  • Oracle Security Alert CPUJUL2022

  • Full Disclosure August 2024 - Issue 37
  • Vendor Resources
  • jQuery UI 1.13.0 Release

  • jQuery UI Commit Update

  • GitHub Security Advisory GHSA-gpqq-952q-5327

  • Oracle Security Alert CPUAPR2022

  • Tenable Security Advisory TNS-2022-09
  • Related CVEs
  • CVE-2022-31160: jQuery UI Checkboxradio Widget XSS Flaw

  • 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