SQL Injection Affecting sequelize package, versions <2.1.4


0.0
medium
  • Attack Complexity

    Low

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:20150517

  • published

    1 Apr 2016

  • disclosed

    17 May 2015

  • credit

    Unknown

How to fix?

Upgrade to version 3.0.0 or greater.

Overview

Beginning with sequelize version 3.0.0, two security related changes were introduced:

  • findOne no longer takes a string / integer / binary argument to represent a primaryKey. Use findById instead.
  • where: "raw query" is no longer legal, you must now explicitly use where: ["raw query", [replacements]]