CVE-2015-9251: Jquery Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-rmxg-73gg-4p98
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2015-9251 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 libraries in the npm ecosystem. The issue involves cross-site scripting (xss) in jquery. Remediation is available by upgrading affected packages to version 1.12.2, 3.0.0, 4.2.0.

CVE-2015-9251 at a Glance

CVE Identifier CVE-2015-9251
GHSA Identifier GHSA-rmxg-73gg-4p98
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
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.0/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-2015-9251

To remediate this vulnerability, upgrade all affected Jquery 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 fixed: 1.12.2
npm install jquery@1.12.2
jQuery fixed: 1.12.2
Upgrade jQuery to 1.12.2
jQuery fixed: 3.0.0
Upgrade jQuery to 3.0.0
jquery fixed: 3.0.0
npm install jquery@3.0.0
jquery-rails fixed: 4.2.0
Upgrade jquery-rails to 4.2.0
org.webjars.npm:jquery fixed: 1.12.2
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jquery</artifactId>
    <version>1.12.2</version>
</dependency>
org.webjars.npm:jquery fixed: 3.0.0
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jquery</artifactId>
    <version>3.0.0</version>
</dependency>
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

How to Check if You Are Affected

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

npm ls jquery

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

Note: The npm ls jquery 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, 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

Affected versions of `jquery` interpret `text/javascript` responses from cross-origin ajax requests, and automatically execute the contents in `jQuery.globalEval`, even when the ajax request doesn't contain the `dataType` option. ## Recommendation Update to version 3.0.0 or later.

CVE-2015-9251 Affected Jquery Versions

7 component(s)
Fixed Versions:
1.12.23.0.04.2.0
Product / Package Ecosystem Affected Versions Fixed Version
jquery
npm
< 1.12.2
1.12.2
jQuery
NuGet
< 1.12.2
1.12.2
jQuery
NuGet
≥ 1.12.3
< 3.0.0
3.0.0
jquery
npm
≥ 1.12.3
< 3.0.0
3.0.0
jquery-rails
RubyGems
< 4.2.0
4.2.0
org.webjars.npm:jquery
Maven
< 1.12.2
1.12.2
org.webjars.npm:jquery
Maven
≥ 1.12.3
< 3.0.0
3.0.0

References

NVD — CVE-2015-9251 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-9251
Jquery Source Repository REPOSITORY
https://github.com/jquery/jquery/issues/2432
Jquery Source Repository REPOSITORY
https://github.com/jquery/jquery/issues/2432#issuecomment-403761229
Jquery Source Repository REPOSITORY
https://github.com/jquery/jquery/pull/2588
Jquery Source Repository REPOSITORY
https://github.com/jquery/jquery/pull/2588/commits/c254d308a7d3f1eac4d0b42837804cfffcba4bb2
Security Fix Commit FIX COMMIT
https://github.com/jquery/jquery/commit/b078a62013782c7424a4a61a240c23c4c0b42614
Security Fix Commit FIX COMMIT
https://github.com/jquery/jquery/commit/f60729f3903d17917dc351f3ac87794de379b0cc
access.redhat.com/errata/rhsa-2020:04... WEB
https://access.redhat.com/errata/RHSA-2020:0481
seclists.org/bugtraq/2019/may/18 WEB
https://seclists.org/bugtraq/2019/May/18
Jquery Security Information SECURITY
https://security.netapp.com/advisory/ntap-20210108-0004
Jquery Security Information SECURITY
https://security.snyk.io/vuln/SNYK-DOTNET-JQUERY-450227
snyk.io/vuln/npm:jquery:201... WEB
https://snyk.io/vuln/npm:jquery:20150627
Jquery Security Information SECURITY
https://sw.aveva.com/hubfs/assets-2018/pdf/security-bulletin/SecurityBulletin_LFSec126.pdf
Jquery Security Information SECURITY
https://web.archive.org/web/20200227030101/http://www.securityfocus.com/bid/105658
Jquery Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
Jquery Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2020.html
Jquery Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
Jquery Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2020.html
Jquery Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Jquery Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
Jquery Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
Jquery Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
Jquery Security Information SECURITY
https://www.tenable.com/security/tns-2019-08
access.redhat.com/errata/rhsa-2020:07... WEB
https://access.redhat.com/errata/RHSA-2020:0729
Jquery Source Repository REPOSITORY
https://github.com/jquery/jquery
Jquery Source Repository REPOSITORY
https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#420
Jquery Source Repository REPOSITORY
https://github.com/rails/jquery-rails/blob/v4.2.0/vendor/assets/javascripts/jquery3.js#L9377
Jquery Release RELEASE
https://github.com/rails/jquery-rails/releases/tag/v4.2.0
Jquery Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-9251.yml
ics-cert.us-cert.gov/advisories/icsa-18-... WEB
https://ics-cert.us-cert.gov/advisories/ICSA-18-212-04
Jquery Security Information SECURITY
https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44601
lists.apache.org/thread.html/10f0f3a... WEB
https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731@%3Cdev.flink.apache.org%3E
lists.apache.org/thread.html/17ff53f... WEB
https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49@%3Cuser.flink.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/52bafac... WEB
https://lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2@%3Cuser.flink.apache.org%3E
lists.apache.org/thread.html/54df3ae... WEB
https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854@%3Cuser.flink.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/ba79cf1... WEB
https://lists.apache.org/thread.html/ba79cf1658741e9f146e4c59b50aee56656ea95d841d358d006c18b6@%3Ccommits.roller.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
Jquery Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
Jquery Security Information SECURITY
http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html
Jquery Security Information SECURITY
http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html
Jquery Security Information SECURITY
http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html
seclists.org/fulldisclosure/2019... WEB
http://seclists.org/fulldisclosure/2019/May/10
seclists.org/fulldisclosure/2019... WEB
http://seclists.org/fulldisclosure/2019/May/11
seclists.org/fulldisclosure/2019... WEB
http://seclists.org/fulldisclosure/2019/May/13
Jquery Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Frequently Asked Questions

What is CVE-2015-9251?
CVE-2015-9251 is a security vulnerability in Jquery involving Cross-Site Scripting (XSS) in jquery under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Jquery versions are affected?
Affected versions include releases prior to 1.12.2, 3.0.0, 4.2.0 across affected packages: jquery, jQuery, jquery-rails, org.webjars.npm:jquery.
What version fixes CVE-2015-9251?
Upgrading to 1.12.2, 3.0.0, 4.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jquery affected?
Yes, jquery is affected in releases prior to 1.12.2, 3.0.0. Upgrade your dependency to 1.12.2, 3.0.0 or later.
Is jQuery affected?
Yes, jQuery is affected in releases prior to 1.12.2, 3.0.0. Upgrade your dependency to 1.12.2, 3.0.0 or later.
What is the CVSS score of CVE-2015-9251?
CVE-2015-9251 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2015-9251?
CVE-2015-9251 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-2015-9251?
Run the dependency tree command: 'npm ls jquery'. 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-rmxg-73gg-4p98",
  "modified" : "2021-09-17T18:58:18Z",
  "published" : "2018-01-22T13:32:06Z",
  "aliases" : [ "CVE-2015-9251" ],
  "summary" : "Cross-Site Scripting (XSS) in jquery",
  "details" : "Affected versions of `jquery` interpret `text/javascript` responses from cross-origin ajax requests, and automatically execute the contents in `jQuery.globalEval`, even when the ajax request doesn't contain the `dataType` option.\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jquery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "jQuery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "jQuery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.3"
      }, {
        "fixed" : "3.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jquery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.3"
      }, {
        "fixed" : "3.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "jquery-rails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:jquery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:jquery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.3"
      }, {
        "fixed" : "3.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-9251"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/issues/2432"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/issues/2432#issuecomment-403761229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/pull/2588"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/pull/2588/commits/c254d308a7d3f1eac4d0b42837804cfffcba4bb2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/commit/b078a62013782c7424a4a61a240c23c4c0b42614"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jquery/jquery/commit/f60729f3903d17917dc351f3ac87794de379b0cc"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0481"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/May/18"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20210108-0004"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-DOTNET-JQUERY-450227"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/npm:jquery:20150627"
  }, {
    "type" : "WEB",
    "url" : "https://sw.aveva.com/hubfs/assets-2018/pdf/security-bulletin/SecurityBulletin_LFSec126.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227030101/http://www.securityfocus.com/bid/105658"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.tenable.com/security/tns-2019-08"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0729"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jquery/jquery"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#420"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/jquery-rails/blob/v4.2.0/vendor/assets/javascripts/jquery3.js#L9377"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/jquery-rails/releases/tag/v4.2.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-9251.yml"
  }, {
    "type" : "WEB",
    "url" : "https://ics-cert.us-cert.gov/advisories/ICSA-18-212-04"
  }, {
    "type" : "WEB",
    "url" : "https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44601"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731@%3Cdev.flink.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49@%3Cuser.flink.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/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2@%3Cuser.flink.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854@%3Cuser.flink.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/ba79cf1658741e9f146e4c59b50aee56656ea95d841d358d006c18b6@%3Ccommits.roller.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/May/10"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/May/11"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/May/13"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:55:10Z",
    "nvd_published_at" : "2018-01-18T23:29:00Z"
  }
}