GitHub Advisoryadvisory · npm

GHSA-2v7q-2xqx-f4q5 Potential SQL Injection in sequelize

HIGH Published 2019-02-18 Modified 2020-08-31 Official page ↗
Aliases
CVE-2016-10553
Ecosystem
npm
Packages
sequelize
Severity
High
Weaknesses
CWE-89
Reviewed
2020-06-16

Affected packages

• npm sequelize: < 3.0.0 → fixed in 3.0.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2016-10553 sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server… vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References