CVE-2021-41184
XSS in the `of` option of the `.position()` util
Also known as BIT-drupal-2021-41184, GHSA-gpqq-952q-5327
Mitigation
- Upgrade jquery-ui to 1.13.0 or later.
- Upgrade org.webjars.npm:jquery-ui to 1.13.0 or later.
- Upgrade jQuery.UI.Combined to 1.13.0 or later.
- Upgrade jquery-ui-rails to 7.0.0 or later.
Who should check
- Projects that depend on npm package jquery-ui (< 1.13.0)
- Projects that depend on Maven package org.webjars.npm:jquery-ui (< 1.13.0)
- Projects that depend on NuGet package jQuery.UI.Combined (< 1.13.0)
- Projects that depend on RubyGems package jquery-ui-rails (< 7.0.0)
- Anyone running jquery-ui < 1.13.0
Vulnerability facts
- Affected
- jquery-ui < 1.13.0; org.webjars.npm:jquery-ui < 1.13.0; jQuery.UI.Combined < 1.13.0; jquery-ui-rails < 7.0.0
- Fixed in
- 1.13.0, 7.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 42.87% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm jquery-ui | < 1.13.0 | 1.13.0 | osv |
| Maven org.webjars.npm:jquery-ui | < 1.13.0 | 1.13.0 | osv |
| NuGet jQuery.UI.Combined | < 1.13.0 | 1.13.0 | osv |
| RubyGems jquery-ui-rails | < 7.0.0 | 7.0.0 | osv |
| jquery-ui | < 1.13.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-41184. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-41184.md Affected: jquery-ui < 1.13.0; org.webjars.npm:jquery-ui < 1.13.0; jQuery.UI.Combined < 1.13.0; jquery-ui-rails < 7.0.0 Fixed in: 1.13.0, 7.0.0 Steps: 1. Search this machine and project for jquery-ui (npm), org.webjars.npm:jquery-ui (Maven), jQuery.UI.Combined (NuGet), jquery-ui-rails (RubyGems), jquery-ui: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/
- https://github.com/jquery/jquery-ui/security/advisories/GHSA-gpqq-952q-5327
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4/
- https://nvd.nist.gov/vuln/detail/CVE-2021-41184
Patches
Other
- https://security.netapp.com/advisory/ntap-20211118-0004/
- https://www.drupal.org/sa-core-2022-001
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html
- http://seclists.org/fulldisclosure/2024/Aug/37
- https://security.netapp.com/advisory/ntap-20211118-0004
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3
- https://github.com/jquery/jquery-ui
- https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released
FAQ
Is CVE-2021-41184 being exploited?
There is no confirmed exploitation: CVE-2021-41184 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 42.87% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-41184?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2021-41184?
jquery-ui < 1.13.0; org.webjars.npm:jquery-ui < 1.13.0; jQuery.UI.Combined < 1.13.0; jquery-ui-rails < 7.0.0.
Is there a fix for CVE-2021-41184?
Yes. Fixed in 1.13.0, 7.0.0. Upgrade jquery-ui to 1.13.0 or later. Upgrade org.webjars.npm:jquery-ui to 1.13.0 or later. Upgrade jQuery.UI.Combined to 1.13.0 or later. Upgrade jquery-ui-rails to 7.0.0 or later.
How do I check if I'm affected by CVE-2021-41184?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.