HighGHSA-wfp9-vr4j-f49j
NoSQL Injection in sequelize
Published 4 Jun 2019 · Updated 21 Apr 2023
Affected package
sequelizenpm
- Affected
- <4.12.0
- Fixed in
- 4.12.0
Update to the fixed version for your release line, for example:
npm install sequelize@4.12.0Details
Versions of sequelize prior to 4.12.0 are vulnerable to NoSQL Injection. Query operators such as $gt are not properly sanitized and may allow an attacker to alter data queries, leading to NoSQL Injection.
Recommendation
Upgrade to version 4.12.0 or later
Is GHSA-wfp9-vr4j-f49j 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.