PT-2021-23156

CVE-2021-41182

·

Published

2021-10-26

·

Updated

2026-10-01

Description by

CVSS 3.1
6.5
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions jQuery UI versions prior to 1.13.0
Description Accepting the value of the altField option of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker with an altField option set to an untrusted string, such as <img onerror='doEvilThing()' src='/404' />, will call the doEvilThing function. The issue is fixed in jQuery UI 1.13.0, where any string value passed to the altField option is now treated as a CSS selector.
Recommendations To resolve the issue, update to jQuery UI version 1.13.0 or later. As a temporary workaround, do not accept the value of the altField option from untrusted sources. Restrict access to the altField option to minimize the risk of exploitation. Avoid using untrusted strings in the altField option until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-9GJ3-HWP5-PMWC
ALSA-2025_16880
ALT-PU-2023-6282
ALT-PU-2023-6850
BIT-DRUPAL-2021-41182
CLEANSTART-2024-NF15761
DLA-2889-1
DLA-3230-1
DLA-3551-1
RHSA-2022:4711
SUSE-SU-2022:1729-1
USN-6419-1
Found an issue in the description? Have something to add? Feel free to write us 👾