CVE-2015-9251: Jquery Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
npm install jquery@1.12.2
Upgrade jQuery to 1.12.2
Upgrade jQuery to 3.0.0
npm install jquery@3.0.0
Upgrade jquery-rails to 4.2.0
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery</artifactId>
<version>1.12.2</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery</artifactId>
<version>3.0.0</version>
</dependency>
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
CVE-2015-9251 Affected Jquery Versions
7 component(s)| 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
Frequently Asked Questions
What is CVE-2015-9251?
Which Jquery versions are affected?
What version fixes CVE-2015-9251?
Is jquery affected?
Is jQuery affected?
What is the CVSS score of CVE-2015-9251?
What CWE is associated with CVE-2015-9251?
How can I check npm dependencies for CVE-2015-9251?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}