CVE-2012-6662: Jquery ui Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-qqxp-xp9v-vvx6
CWE-79
Published
Advisory Summary

CVE-2012-6662 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jquery ui libraries in the npm ecosystem. The issue involves jquery-ui tooltip widget vulnerable to xss. Remediation is available by upgrading affected packages to version 1.10.0, 4.0.0.

CVE-2012-6662 at a Glance

CVE Identifier CVE-2012-6662
GHSA Identifier GHSA-qqxp-xp9v-vvx6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Jquery ui
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2012-6662

To remediate this vulnerability, upgrade all affected Jquery ui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

jquery-ui fixed: 1.10.0
npm install jquery-ui@1.10.0
jquery-ui-rails fixed: 4.0.0
Upgrade jquery-ui-rails to 4.0.0
org.webjars.npm:jquery-ui fixed: 1.10.0
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jquery-ui</artifactId>
    <version>1.10.0</version>
</dependency>
jQuery.UI.Combined fixed: 1.10.0
Upgrade jQuery.UI.Combined to 1.10.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls jquery-ui

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2012-6662, inspect your project dependencies using npm:

npm ls jquery-ui

Analyze the terminal output to locate any version of Jquery ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.0), your application is affected.

Note: The npm ls jquery-ui command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Jquery ui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross-site scripting (XSS) vulnerability in the default content option in jquery.ui.tooltip.js in the Tooltip widget in jQuery UI before 1.10.0 allows remote attackers to inject arbitrary web script or HTML via the title attribute, which is not properly handled in the autocomplete combo box demo.

CVE-2012-6662 Affected Jquery ui Versions

4 component(s)
Fixed Versions:
1.10.04.0.0
Product / Package Ecosystem Affected Versions Fixed Version
jquery-ui
npm
< 1.10.0
1.10.0
jquery-ui-rails
RubyGems
< 4.0.0
4.0.0
org.webjars.npm:jquery-ui
Maven
< 1.10.0
1.10.0
jQuery.UI.Combined
NuGet
< 1.10.0
1.10.0

References

Frequently Asked Questions

What is CVE-2012-6662?
CVE-2012-6662 is a security vulnerability in Jquery ui involving jquery-ui Tooltip widget vulnerable to XSS under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Jquery ui versions are affected?
Affected versions include releases prior to 1.10.0, 4.0.0 across affected packages: jquery-ui, jquery-ui-rails, org.webjars.npm:jquery-ui, jQuery.UI.Combined.
What version fixes CVE-2012-6662?
Upgrading to 1.10.0, 4.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jquery-ui affected?
Yes, jquery-ui is affected in releases prior to 1.10.0. Upgrade your dependency to 1.10.0 or later.
Is jquery-ui-rails affected?
Yes, jquery-ui-rails is affected in releases prior to 4.0.0. Upgrade your dependency to 4.0.0 or later.
What CWE is associated with CVE-2012-6662?
CVE-2012-6662 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2012-6662?
Run the dependency tree command: 'npm ls jquery-ui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qqxp-xp9v-vvx6",
  "modified" : "2025-04-14T21:53:44Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2012-6662" ],
  "summary" : "jquery-ui Tooltip widget vulnerable to XSS",
  "details" : "Cross-site scripting (XSS) vulnerability in the default content option in jquery.ui.tooltip.js in the Tooltip widget in jQuery UI before 1.10.0 allows remote attackers to inject arbitrary web script or HTML via the title attribute, which is not properly handled in the autocomplete combo box demo.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jquery-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "jquery-ui-rails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:jquery-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "jQuery.UI.Combined"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6662"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/issues/2432"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery-ui/commit/5fee6fd5000072ff32f2d65b6451f39af9e0e39e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery-ui/commit/f2854408cce7e4b7fc6bf8676761904af9c96bde"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/98697"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jquery/jquery"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2012-6662.yml"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.jqueryui.com/ticket/8859"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.jqueryui.com/ticket/8861"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0442.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1462.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2014/q4/613"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2014/q4/616"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:52:37Z",
    "nvd_published_at" : "2014-11-24T16:59:01Z"
  }
}