CVEfocus › CVE database › CVE-2021-41182

CVE-2021-41182XSS in the `altField` option of the Datepicker widget

CVSS 6.5 MediumEPSS 41.3% (higher than 99% of CVEs)Published 2021-10-26Updated 2025-02-13Assigner: GitHub_M

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

CWE-79

What to do

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

Fixed builds are available from Alpine, Debian, Maven, RubyGems, Ubuntu, 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

13Fixed
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.04jqueryuiFixed1.12.1+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-41182
Ubuntu 18.04jqueryuiFix pending1.12.1+dfsg-5ubuntu0.18.04.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2021-41182
Ubuntu 16.04jqueryuiFix pending1.10.1+dfsg-1ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-41182
Ubuntu 14.04jqueryuiFix pending1.10.1+dfsg-1ubuntu0.14.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-41182
Debian 14jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41182
Debian 13jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41182
Debian 12jqueryuiFixed1.13.0+dfsg-1DEBIAN-CVE-2021-41182
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
Alpine Linux 3.20drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
Alpine Linux 3.19drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
Alpine Linux 3.18drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
Alpine Linux 3.17drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
Alpine Linux 3.16drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
Alpine Linux 3.15drupal7Fixed7.86-r0ALPINE-CVE-2021-41182
npm libraryjquery-uiFixed1.13.0GHSA-9gj3-hwp5-pmwc
RubyGems libraryjquery-ui-railsFixed7.0.0GHSA-9gj3-hwp5-pmwc
Maven libraryorg.webjars.npm:jquery-uiFixed1.13.0GHSA-9gj3-hwp5-pmwc

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.