sequelize
Affected
- introduced
0, fixed3.0.0(semver)
Fixed versions
3.0.0
Fix
- Fixed version
3.0.0npm install [email protected]
Advisory
Also known as: CVE-2016-10553
Potential SQL Injection in sequelize
Affected versions of sequelize are vulnerable to SQL Injection when user input is passed into findOne or into a statement such as where: "user input".
Recommendation
Update to version 3.0.0 or later.
Version 3.0.0 will introduce a number of breaking changes.
Thankfully, the project authors have provided a 2.x -> 3.x upgrade guide to ease this transition.
If upgrading is not an option, it is also possible to mitigate this by ensuring that all uses of where: "input" and findOne("input") are properly sanitized, such as by the use of a wrapper function.
High Basis: The source's own band: HIGH
0, fixed 3.0.0 (semver)3.0.0
3.0.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0