SQL Injection The advisory has been revoked - it doesn't affect any version of package sequelize Open this link 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 ID npm:sequelize:20160106
  • published 1 Apr 2016
  • disclosed 6 Jan 2015
  • credit Spencer Creasey

Introduced: 6 Jan 2015

CVE NOT AVAILABLE CWE-89 Open this link 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);
});