CVE-2016-10556: hackerone sequelize node module SQL Injection
Vulnerability summary
CVE-2016-10556 is a high (CVSS 7.5) SQL Injection vulnerability in hackerone sequelize node module. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 70.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 29-05-2018PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.32%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
-0.02 pp
From 1.34% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundSequelize
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Hackerone1 product
- sequelize node module≤ 3.19.3
Npm1 product
- sequelize< 3.20.0
Sequelizejs1 product
- sequelize≤ 3.19.3
3 vendors · 3 products
References
5 links- github.com/sequelize/sequelize/issues/5671X Refsource MISCExploitIssue TrackingThird Party AdvisoryWEB