HighGHSA-xqg8-cv3h-xppvCVE-2015-1369
SQL Injection in sequelize
Published 24 Oct 2017 · Updated 8 Nov 2023
Affected package
sequelizenpm
- Affected
- <2.0.0-rc8
- Fixed in
- 2.0.0-rc8
Update to the fixed version for your release line, for example:
npm install sequelize@2.0.0-rc8Details
Versions 2.0.0-rc-7 and earlier of sequelize are affected by a SQL injection vulnerability when user input is passed into the order parameter.
Proof of Concept
Test.findAndCountAll({
where: { id :1 },
order : [['id', 'UNTRUSTED USER INPUT']]
})Recommendation
Update to version 2.0.0-rc8 or later
Is GHSA-xqg8-cv3h-xppv 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 sequelize, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-1369
- Linkgithub.com/sequelize/sequelize/issues/2906
- Linkgithub.com/sequelize/sequelize/pull/2919
- Advisorygithub.com/advisories/GHSA-xqg8-cv3h-xppv
- Packagegithub.com/sequelize/sequelize
- Linkwww.npmjs.com/advisories/33
- Linkwww.openwall.com/lists/oss-security/2015/01/23/2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.