Bug 2019144 (CVE-2021-41182) - CVE-2021-41182 jquery-ui: XSS in the altField option of the datepicker widget
Summary: CVE-2021-41182 jquery-ui: XSS in the altField option of the datepicker widget
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-41182
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2019145 2019146 2019147 2025456
Blocks: 2019158
TreeView+ depends on / blocked
 
Reported: 2021-11-01 17:18 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-06-14 23:43 UTC (History)
33 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-26 18:44:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:22:15 UTC

Description Guilherme de Almeida Suckevicz 2021-11-01 17:18:53 UTC
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.

Reference:
https://github.com/jquery/jquery-ui/security/advisories/GHSA-9gj3-hwp5-pmwc

Upstream patch:
https://github.com/jquery/jquery-ui/pull/1954/commits/6809ce843e5ac4128108ea4c15cbc100653c2b63

Comment 1 Guilherme de Almeida Suckevicz 2021-11-01 17:19:29 UTC
Created js-jquery-ui tracking bugs for this issue:

Affects: epel-all [bug 2019146]
Affects: fedora-all [bug 2019145]


Created pcs tracking bugs for this issue:

Affects: fedora-all [bug 2019147]

Comment 3 Garrett Tucker 2021-11-11 19:07:35 UTC
After review, RHEL is unaffected as there is no instance of pcs using the affected widget. While pcs does make use of jequery-ui, it is limited in usage and scope and there is no use of the datepicker widget or 'altField' option in pcs.

Comment 6 errata-xmlrpc 2022-05-26 16:22:12 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization Engine 4.4

Via RHSA-2022:4711 https://access.redhat.com/errata/RHSA-2022:4711

Comment 7 Product Security DevOps Team 2022-05-26 18:44:07 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-41182


Note You need to log in before you can comment on or make changes to this bug.