GitHub Advisoryadvisory · npm
GHSA-xqg8-cv3h-xppv SQL Injection in sequelize
HIGH
Official page ↗
- Aliases
- CVE-2015-1369
- Ecosystem
- npm
- Packages
- sequelize
- Severity
- High
- Weaknesses
- CWE-89
- Reviewed
- 2020-06-16
Affected packages
• npm sequelize: < 2.0.0-rc8 → fixed in 2.0.0-rc8
Description
Versions 2.0.0-rc-7 and earlier of `sequelize` are affected by a SQL injection vulnerability when user input is passed into the order parameter.
Proof of Concept
```javascript
Test.findAndCountAll({
where: { id :1 },
order : [['id', 'UNTRUSTED USER INPUT']]
})
```
Recommendation
Update to version 2.0.0-rc8 or later
Related
Alias · CVE (1)
- CVE-2015-1369 SQL injection vulnerability in Sequelize before 2.0.0-rc7 for Node.js allows remote attackers to execute arbitrary SQL commands via the… vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-1369 advisory
- https://github.com/sequelize/sequelize/issues/2906 web
- https://github.com/sequelize/sequelize/pull/2919 web
- https://github.com/advisories/GHSA-xqg8-cv3h-xppv advisory
- https://github.com/sequelize/sequelize package
- https://www.npmjs.com/advisories/33 web
- http://www.openwall.com/lists/oss-security/2015/01/23/2 web