CVE-2021-41184 MEDIUM

CVE-2021-41184: XSS in the `of` option of the `.position()` util

Vendor Jquery
Product jquery-ui
Weakness CWE-79 · XSS
Published October 26, 2021
Last update November 4, 2025

CVSS base score

6.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality None
Integrity High

CVSS vector

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

What the vulnerability does

01Description

jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the `of` option of the `.position()` util from untrusted sources may execute untrusted code. The issue is fixed in jQuery UI 1.13.0. Any string value passed to the `of` option is now treated as a CSS selector. A workaround is to not accept the value of the `of` option from untrusted sources.

Key dates

02Disclosure timeline

October 26, 2021 CVE published
November 4, 2025 Record updated