# CVE-2012-6662: jQuery UI Tooltip widget XSS via title attribute

Source: https://junglewise.ai/threats/cve-2012-6662-jquery-ui-tooltip-widget-xss-via-title-attribute  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-10-24. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2012-6662 · Severity: info · CVSS 6.1 · Published 2017-10-24

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.

Technologies: [org.webjars.npm:jquery-ui (Maven)](https://junglewise.ai/threats/technologies/org-webjars-npm-jquery-ui), [jquery-ui (npm)](https://junglewise.ai/threats/technologies/jquery-ui), [jQuery.UI.Combined (NuGet)](https://junglewise.ai/threats/technologies/jquery-ui-combined), [jquery-ui-rails (RubyGems)](https://junglewise.ai/threats/technologies/jquery-ui-rails). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [npm](https://junglewise.ai/threats/vendors/npm), [NuGet](https://junglewise.ai/threats/vendors/nuget), [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2012-6662 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2012-6662 being exploited in the wild.

**How severe is CVE-2012-6662?** Informational severity, with a CVSS score of 6.1, published 24 October 2017.

**Which products and versions are affected?** org.webjars.npm:jquery-ui (Maven) ECOSYSTEM:introduced=0,fixed=1.10.0; jquery-ui (npm) SEMVER:introduced=0,fixed=1.10.0; jQuery.UI.Combined (NuGet) ECOSYSTEM:introduced=0,fixed=1.10.0; jquery-ui-rails (RubyGems) ECOSYSTEM:introduced=0,fixed=4.0.0.

**Is there a fix for CVE-2012-6662?** Yes. org.webjars.npm:jquery-ui (Maven): upgrade to 1.10.0 or later; jquery-ui (npm): upgrade to 1.10.0 or later; jQuery.UI.Combined (NuGet): upgrade to 1.10.0 or later; jquery-ui-rails (RubyGems): upgrade to 4.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2012-6662 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2012-6662?** Check whether you run org.webjars.npm:jquery-ui (Maven), jquery-ui (npm), jQuery.UI.Combined (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.webjars.npm:jquery-ui (Maven): upgrade to 1.10.0 or later

  ```sh
  # set org.webjars.npm:jquery-ui to 1.10.0 in your pom.xml or build.gradle
  ```

- jquery-ui (npm): upgrade to 1.10.0 or later

  ```sh
  npm install jquery-ui@1.10.0
  ```

- jQuery.UI.Combined (NuGet): upgrade to 1.10.0 or later

  ```sh
  dotnet add package jQuery.UI.Combined --version 1.10.0
  ```

- jquery-ui-rails (RubyGems): upgrade to 4.0.0 or later

  ```sh
  bundle update jquery-ui-rails
  ```


## 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

## Identifiers

- CVE-2012-6662
- GHSA-qqxp-xp9v-vvx6

## 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

## References

- [https://github.com/jquery/jquery/issues/2432](https://github.com/jquery/jquery/issues/2432)

## Related threats

- [jQuery UI XSS in checkboxradio refresh with HTML-like label text](https://junglewise.ai/threats/cve-2022-31160-jquery-ui-xss-in-checkboxradio-refresh-with-html-like-label-text)
- [jQuery UI Datepicker XSS in text options](https://junglewise.ai/threats/cve-2021-41183-jquery-ui-datepicker-xss-in-text-options)
- [jQuery UI XSS in position() method](https://junglewise.ai/threats/cve-2021-41184-jquery-ui-xss-in-position-method)
- [jQuery UI Datepicker XSS in altField option](https://junglewise.ai/threats/cve-2021-41182-jquery-ui-datepicker-xss-in-altfield-option)
- [jQuery UI cross-site scripting in dialog closeText parameter](https://junglewise.ai/threats/jquery-ui-cross-site-scripting-in-dialog-closetext-parameter-65aa5ef7)
