CVEfocus › CVE database › CVE-2021-41184

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

CVSS 6.5 MediumEPSS 42.9% (in the top 1% of all CVEs)Published 2021-10-26Updated 2026-11-02Assigner: GitHub_M

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.

CWE-79

What to do

Likely to be exploited: EPSS gives a 43% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven, RubyGems, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
3Fix pending
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04jqueryuiFix pending1.12.1+dfsg-5ubuntu0.20.04.1 (Ubuntu Pro)UBUNTU-CVE-2021-41184
Ubuntu 18.04jqueryuiFix pending1.12.1+dfsg-5ubuntu0.18.04.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2021-41184
Ubuntu 16.04jqueryuiFix pending
Debian 14jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41184
Debian 13jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41184
Debian 12jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41184
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
Red Hat Enterprise Linux 7pcsNot affected
Red Hat Enterprise Linux 7pcs-snmpNot affected
Red Hat Enterprise Linux 7python-clufterNot affected
Red Hat Enterprise Linux 6pcsNot affected
npm libraryjquery-uiFixed1.13.0GHSA-gpqq-952q-5327
RubyGems libraryjquery-ui-railsFixed7.0.0GHSA-gpqq-952q-5327
Maven libraryorg.webjars.npm:jquery-uiFixed1.13.0GHSA-gpqq-952q-5327

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.