SQL Injection The advisory has been revoked - it doesn't affect any version of package sequelize  (opens in a new tab)


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDnpm:sequelize:20160106
  • published1 Apr 2016
  • disclosed6 Jan 2015
  • creditSpencer Creasey

Introduced: 6 Jan 2015

CVE NOT AVAILABLE CWE-89  (opens in a new tab)

How to fix?

Upgrade to version 3.17.0 or greater.

Overview

sequelize versions prior to 3.17.0 are vulnerable to SQL Injection attacks if untrusted user input is passed into the order or limit parameters.

Example

models.User.findAll({
  limit: '1; DELETE FROM "Users" WHERE 1=1; --',
}).then(function (users) {
  console.log(users);
});