SQL Injection

Module: sequelize

Published: January 19th, 2015

Reported by: Levan Basharuli

CVE-2015-1369

CWE-89

Vulnerable: <=2.0.0-rc7
Patched: >=2.0.0-rc8

Overview

SQL Injection is possible in an application using the npm module sequelize if untrusted user input is passed into the order parameter.

Example:

Test.findAndCountAll({
where: { id :1 },
order : [['id', 'UNTRUSTED USER INPUT']]
})

Remediation

Update to version 2.0.0-rc8 or greater.

References

Sign up FREE for
nsp Continuous Security

Free for open source and the first private repo,
then just $1/mo per private repo