CVE-2021-41182

published 26 Oct 2021 · updated 13 Feb 2025

XSS in the `altField` option of the Datepicker widget

7.0HighCVSS 6.5EPSS 39%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 39%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
JQueryJQuery<1.13.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in JQuery, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-41182 severity on Zeptric[![CVE-2021-41182](https://zeptric.io/badge/cve/CVE-2021-41182.svg)](https://zeptric.io/cve/CVE-2021-41182)