Vulnerability · Published Oct 26, 2021 · Assigned by GitHub_M
CVE-2021-41184XSS in the `of` option of the `.position()` util
Medium 6.5
In plain English
A medium-severity cross-site scripting in jquery-ui from jquery. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 40.8% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jqueryui | 1.13.0+dfsg-1 | DEBIAN-CVE-2021-41184 |
| Debian:13 | jqueryui | 1.13.0+dfsg-1 | DEBIAN-CVE-2021-41184 |
| Debian:14 | jqueryui | 1.13.0+dfsg-1 | DEBIAN-CVE-2021-41184 |
| Maven | org.webjars.npm:jquery-ui | 1.13.0 | GHSA-gpqq-952q-5327 |
| NuGet | jquery.ui.combined | 1.13.0 | GHSA-gpqq-952q-5327 |
| RubyGems | jquery-ui-rails | 7.0.0 | GHSA-gpqq-952q-5327 |
| npm | jquery-ui | 1.13.0 | GHSA-gpqq-952q-5327 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- 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://github.com/jquery/jquery-ui/commit/effa323f1505f2ce7a324e4f429fa9032c72f280
- FEDORA-2021-51c256bf87 vendor-advisory
- FEDORA-2021-ab38307fc3 vendor-advisory
- FEDORA-2021-013ab302be vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- 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://www.tenable.com/security/tns-2022-09
- FEDORA-2022-9d655503ea vendor-advisory
- FEDORA-2022-bf18450366 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html
- http://seclists.org/fulldisclosure/2024/Aug/37