CVE-2010-5312: Jquery ui Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-wcm2-9c89-wmfm
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2010-5312 is a MODERATE (CVSS 6.1) 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 cross-site scripting in jquery-ui. Remediation is available by upgrading affected packages to version 1.10.0, 4.0.0.

CVE-2010-5312 at a Glance

CVE Identifier CVE-2010-5312
GHSA Identifier GHSA-wcm2-9c89-wmfm
Severity MODERATE
CVSS v3.1 Base Score 6.1
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

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2010-5312

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
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
jquery-ui-rails fixed: 4.0.0
Upgrade jquery-ui-rails to 4.0.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-2010-5312, 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 jquery.ui.dialog.js in the Dialog widget in jQuery UI before 1.10.0 allows remote attackers to inject arbitrary web script or HTML via the title option.

CVE-2010-5312 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.7.0
< 1.10.0
1.10.0
org.webjars.npm:jquery-ui
Maven
≥ 1.7.0
< 1.10.0
1.10.0
jQuery.UI.Combined
NuGet
≥ 1.7.0
< 1.10.0
1.10.0
jquery-ui-rails
RubyGems
< 4.0.0
4.0.0

References

NVD — CVE-2010-5312 NVD
https://nvd.nist.gov/vuln/detail/CVE-2010-5312
Security Fix Commit FIX COMMIT
https://github.com/jquery/jquery-ui/commit/7e9060c109b928769a664dbcc2c17bd21231b6f3
www.drupal.org/sa-core-2022-002 WEB
https://www.drupal.org/sa-core-2022-002
Jquery ui Security Information SECURITY
https://web.archive.org/web/20170316161850/http://www.securitytracker.com/id/1037035
Jquery ui Security Information SECURITY
https://web.archive.org/web/20150316023043/http://www.securityfocus.com/bid/71106
Jquery ui Security Information SECURITY
https://security.netapp.com/advisory/ntap-20190416-0007
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2022/01/msg00014.html
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E
Jquery ui Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2010-5312.yml
Jquery ui Source Repository REPOSITORY
https://github.com/jquery/jquery-ui
exchange.xforce.ibmcloud.com/vulnerabilities/986... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/98696
Jquery ui Security Information SECURITY
http://bugs.jqueryui.com/ticket/6016
rhn.redhat.com/errata/rhsa-2015-04... WEB
http://rhn.redhat.com/errata/RHSA-2015-0442.html
rhn.redhat.com/errata/rhsa-2015-14... WEB
http://rhn.redhat.com/errata/RHSA-2015-1462.html
seclists.org/oss-sec/2014/q4/613 WEB
http://seclists.org/oss-sec/2014/q4/613
seclists.org/oss-sec/2014/q4/616 WEB
http://seclists.org/oss-sec/2014/q4/616
Jquery ui Security Information SECURITY
http://www.debian.org/security/2015/dsa-3249
Jquery ui Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html

Frequently Asked Questions

What is CVE-2010-5312?
CVE-2010-5312 is a security vulnerability in Jquery ui involving Cross-site Scripting in jquery-ui 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, org.webjars.npm:jquery-ui, jQuery.UI.Combined, jquery-ui-rails.
What version fixes CVE-2010-5312?
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.Combined affected?
Yes, jQuery.UI.Combined is affected in releases prior to 1.10.0. Upgrade your dependency to 1.10.0 or later.
What is the CVSS score of CVE-2010-5312?
CVE-2010-5312 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2010-5312?
CVE-2010-5312 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-2010-5312?
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-wcm2-9c89-wmfm",
  "modified" : "2025-04-14T21:53:50Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2010-5312" ],
  "summary" : "Cross-site Scripting in jquery-ui",
  "details" : "Cross-site scripting (XSS) vulnerability in jquery.ui.dialog.js in the Dialog widget in jQuery UI before 1.10.0 allows remote attackers to inject arbitrary web script or HTML via the title option.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jquery-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:jquery-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "jQuery.UI.Combined"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "jquery-ui-rails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-5312"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery-ui/commit/7e9060c109b928769a664dbcc2c17bd21231b6f3"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/sa-core-2022-002"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20170316161850/http://www.securitytracker.com/id/1037035"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150316023043/http://www.securityfocus.com/bid/71106"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20190416-0007"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2022/01/msg00014.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ui-rails/CVE-2010-5312.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jquery/jquery-ui"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/98696"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.jqueryui.com/ticket/6016"
  }, {
    "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"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3249"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:00:08Z",
    "nvd_published_at" : "2014-11-24T16:59:00Z"
  }
}