CVE-2021-41182

Public Exploit
XSS in the `altField` option of the Datepicker widget

Description

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.

Category

6.5
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 22.27% Top 5%
Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory jqueryui.com
Affected: jquery jquery-ui
Published at:
Updated at:

References

Link Tags
https://github.com/jquery/jquery-ui/security/advisories/GHSA-9gj3-hwp5-pmwc mitigation third party advisory exploit
https://github.com/jquery/jquery-ui/pull/1954/commits/6809ce843e5ac4128108ea4c15cbc100653c2b63 third party advisory patch
https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/ release notes vendor advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ/ vendor advisory mailing list third party advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES/ vendor advisory mailing list third party advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW/ vendor advisory mailing list third party advisory
https://lists.debian.org/debian-lts-announce/2022/01/msg00014.html third party advisory mailing list
https://www.drupal.org/sa-core-2022-002 third party advisory
https://www.oracle.com/security-alerts/cpuapr2022.html third party advisory patch
https://security.netapp.com/advisory/ntap-20211118-0004/ third party advisory
https://www.drupal.org/sa-contrib-2022-004 third party advisory
https://www.oracle.com/security-alerts/cpujul2022.html third party advisory patch
https://www.tenable.com/security/tns-2022-09 third party advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3/ vendor advisory mailing list third party advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4/ vendor advisory mailing list third party advisory
https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html

Frequently Asked Questions

What is the severity of CVE-2021-41182?
CVE-2021-41182 has been scored as a medium severity vulnerability.
How to fix CVE-2021-41182?
To fix CVE-2021-41182, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-41182 being actively exploited in the wild?
It is possible that CVE-2021-41182 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~22% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-41182?
CVE-2021-41182 affects jquery jquery-ui.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.