Executive brief
jQuery UI is a popular JavaScript library providing interactive UI components. The Tooltip widget in jQuery UI before version 1.10.0 contains a cross-site scripting (XSS) vulnerability in how it handles the HTML title attribute, allowing attackers to inject and execute malicious scripts in users' browsers. This could lead to account compromise, credential theft, or malware distribution.
Technical details
The vulnerability is a reflected cross-site scripting (XSS) flaw in the Tooltip widget's default content option handler (jquery.ui.tooltip.js). The widget improperly sanitizes user-supplied content from the title attribute before inserting it into the DOM, specifically in the autocomplete combo box demo context. An attacker can craft a malicious HTML/JavaScript payload in the title attribute of any element bound to the Tooltip widget; when a user hovers over the element, the payload executes with the privileges of the user's browser session. The vulnerability affects all versions of jQuery UI prior to 1.10.0. Patches were released in version 1.10.0 and are available in the affected package repositories (npm, RubyGems, Maven, NuGet).
Affected products
- jQuery jQuery UI before 1.10.0
- jQuery jquery-ui before 1.10.0
- jQuery jquery-ui-rails before 4.0.0
Timeline
- 2012: disclosed: Vulnerability CVE-2012-6662 originally reported
- 2012: patched: Fixed in jQuery UI 1.10.0
- 2017-10-24: advisory: GitHub Security Advisory GHSA-qqxp-xp9v-vvx6 published