{"cve":"CVE-2016-10556","nvd":{"published":"2018-05-29T20:29:00.750","modified":"2026-06-17T00:39:55.833","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-89"],"references":["https://github.com/sequelize/sequelize/issues/5671","https://nodesecurity.io/advisories/102","https://github.com/sequelize/sequelize/issues/5671","https://nodesecurity.io/advisories/102"],"products":["sequelizejs:sequelize"],"source":"nvd","synced_at":"2026-10-19T20:50:40.212176939+00:00"},"epss":{"cve":"CVE-2016-10556","score":0.01322,"percentile":0.70887,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9c2p-jw8p-f84v","url":"https://osv.dev/vulnerability/GHSA-9c2p-jw8p-f84v","summary":"SQL Injection in sequelize","modified":"2023-11-08T03:58:12.386286Z","packages":[{"ecosystem":"npm","name":"sequelize","purl":"pkg:npm/sequelize","ranges":["<3.20.0"],"fixed":["3.20.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}