HighGHSA-xqg8-cv3h-xppvCVE-2015-1369

SQL Injection in sequelize

Published 24 Oct 2017 · Updated 8 Nov 2023

Affected package

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-rc8

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.