QID 981638
QID 981638: Nodejs (npm) Security Update for sequelize (GHSA-m9jw-237r-gvfv)
Affected versions of `sequelize` are vulnerable to SQL Injection. The function `sequelize.json()` incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query. Exploitation example:
```return User.findAll({
where: this.sequelize.json("data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- ", 1)
});```
## Recommendation
If you are using `sequelize` 5.x, upgrade to version 5.15.1 or later.
If you are using `sequelize` 4.x, upgrade to version 4.44.3 or later.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-m9jw-237r-gvfv for updates pertaining to this vulnerability.
Vendor References
- GHSA-m9jw-237r-gvfv -
github.com/advisories/GHSA-m9jw-237r-gvfv
CVEs related to QID 981638
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-m9jw-237r-gvfv | sequelize |
|