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
Published May 29, 2018
7.5
HIGHCVSS 3.0
EPSS 1.34%
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.
Affected products
-
- Version <=3.19.3StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| HackerOne | Sequelize Node Module | n/a |
|
- ≤ 3.19.3
No data.
No Red Hat product state for this CVE.
sequelize
npm
Introduced 0 Fixed 3.20.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | sequelize | 0 | 3.20.0 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.34% (0.01342) | 70.33th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.34% (0.01342) | 67.57th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.20% (0.00201) | 40.22th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.10% (0.00102) | 43.39th | v3 (v2023.03.01) |
| Mar 5, 2024 | 0.10% (0.00102) | 40.50th | v3 (v2023.03.01) |
| Oct 20, 2023 | 0.09% (0.00094) | 39.52th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.10% (0.00102) | 40.99th | v3 (v2023.03.01) |
| May 8, 2023 | 0.12% (0.00119) | 44.52th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.10% (0.00102) | 40.30th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
References (6)
- https://github.com/advisories/GHSA-9c2p-jw8p-f84v Advisory
- https://github.com/sequelize/sequelize/commit/23952a2b020cc3571f090e67dae7feb084e1be71
- https://github.com/sequelize/sequelize/commits/v3.20.0?after=62e4dacb28a779a190a3e042b971dcd8c7926e49+34&branch=v3.20.0&qualified_name=refs%2Ftags%2Fv3.20.0
- https://github.com/sequelize/sequelize/issues/5671 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://nodesecurity.io/advisories/102 x_refsource_MISCThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10556
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-9c2p-jw8p-f84v | Advisory | |
| https://github.com/sequelize/sequelize/commit/23952a2b020cc3571f090e67dae7feb084e1be71 | ||
| https://github.com/sequelize/sequelize/commits/v3.20.0?after=62e4dacb28a779a190a3e042b971dcd8c7926e49+34&branch=v3.20.0&qualified_name=refs%2Ftags%2Fv3.20.0 | ||
| https://github.com/sequelize/sequelize/issues/5671 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://nodesecurity.io/advisories/102 | x_refsource_MISCThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-10556 |
Change history (0)
No recorded changes yet.