MediumGHSA-x2jc-pwfj-h9p3CVE-2016-10554
SQL Injection in sequelize
Published 18 Feb 2019 · Updated 8 Nov 2023
Affected package
sequelizenpm
- Affected
- <1.7.0
- Fixed in
- 1.7.0
Update to the fixed version for your release line, for example:
npm install sequelize@1.7.0Details
Affected versions of sequelize use MySQL's backslash-based escape syntax when connecting to SQLite, despite the fact that SQLite uses PostgreSQL's escape syntax, which can result in a SQL Injection vulnerability.
Recommendation
Update to version 1.7.0-alpha3 or later.
Is GHSA-x2jc-pwfj-h9p3 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.