MediumGHSA-rmxg-73gg-4p98CVE-2015-9251
Cross-Site Scripting (XSS) in jquery
Published 22 Jan 2018 · Updated 10 Mar 2024
Affected packages
jquerynpm
- Affected
- <1.12.2
- Fixed in
- 1.12.2
Update to the fixed version for your release line, for example:
npm install jquery@1.12.2jquerynpm
- Affected
- >=1.12.3 <3.0.0
- Fixed in
- 3.0.0
Update to the fixed version for your release line, for example:
npm install jquery@3.0.0Details
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.
Is GHSA-rmxg-73gg-4p98 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected jquery, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-9251
- Linkgithub.com/jquery/jquery/issues/2432
- Linkgithub.com/jquery/jquery/issues/2432#issuecomment-403761229
- Linkgithub.com/jquery/jquery/pull/2588
- Linkgithub.com/jquery/jquery/pull/2588/commits/c254d308a7d3f1eac4d0b42837804cfffcba4bb2
- Linkgithub.com/jquery/jquery/commit/b078a62013782c7424a4a61a240c23c4c0b42614
- Linkgithub.com/jquery/jquery/commit/f60729f3903d17917dc351f3ac87794de379b0cc
- Linkaccess.redhat.com/errata/RHSA-2020:0481
- Linkseclists.org/bugtraq/2019/May/18
- Linksecurity.netapp.com/advisory/ntap-20210108-0004
- Linksecurity.snyk.io/vuln/SNYK-DOTNET-JQUERY-450227
- Linksnyk.io/vuln/npm:jquery:20150627
- Linksw.aveva.com/hubfs/assets-2018/pdf/security-bulletin/SecurityBulletin_LFSec126.pdf
- Linkweb.archive.org/web/20200227030101/http://www.securityfocus.com/bid/105658
- Linkwww.oracle.com/security-alerts/cpuapr2020.html
- Linkwww.oracle.com/security-alerts/cpujan2020.html
- Linkwww.oracle.com/security-alerts/cpujul2020.html
- Linkwww.oracle.com/security-alerts/cpuoct2020.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.