CVE-2016-10556
HIGH 7.5CVSS 3.0SQL Injection in sequelize
sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server into usable data for NodeJS In Postgres, SQLite, and Microsoft SQL Server there is an issue where arrays are treated as strings and improperly escaped. This causes potential SQL injection in sequelize 3.19.3 and earlier, where a malicious user could put ["test", "'); DELETE TestTable WHERE Id = 1 --')"] inside of database.query('SELECT * FROM TestTable WHERE Name IN (:names)', { replacements: { names: directCopyOfUserInput } }); and cause the SQL statement to become SELECT Id FROM Table WHERE Name IN ('test', '\'); DELETE TestTable WHERE Id = 1 --'). In Postgres, MSSQL, and SQLite, the backslash has no special meaning. This causes the the statement to delete whichever Id has a value of 1 in the TestTable table.
- Published
- 29 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-9c2p-jw8p-f84v
- Sources
- NVDJSONOSV GHSA-9c2p-jw8p-f84vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sequelizejs | sequelizecpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:* |
<= 3.19.3 | |
| OSV | npm | sequelize | < 3.20.0 | 3.20.0 |
References
- https://github.com/sequelize/sequelize/issues/5671 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/102 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10556 · ADVISORY
- https://github.com/sequelize/sequelize/commit/23952a2b020cc3571f090e67dae7feb084e1be71 · WEB
- https://github.com/sequelize/sequelize/commits/v3.20.0?after=62e4dacb28a779a190a3e042b971dcd8c7926e49+34&branch=v3.20.0&qualified_name=refs%2Ftags%2Fv3.20.0 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 29 May 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Feb 2019)