CVE-2019-10752: SQL Injection in sequelize
Summary
CVE-2019-10752: SQL Injection in sequelize. Affects sequelize across 2 version ranges.
< 4.44.3
>= 5.0.0, < 5.15.1
Fixed in 4.44.3 or 5.15.1, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Sequelize is an open-source Object-Relational Mapping (ORM) library for Node.js that provides easy access to databases by mapping database entries to objects. It is widely used for building web applications and APIs. However, certain versions of Sequelize are vulnerable to SQL Injection attacks.
Vulnerability Detail
The vulnerability in Sequelize (versions 4.x and 5.x) arises from the incorrect formatting of sub paths for JSON queries in the sequelize.json() function. This allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query. An attacker can exploit this vulnerability to manipulate the database, extract sensitive information, or perform unauthorized actions.
How To Fix
Latest published version: 6.37.8 as of 23 Oct 2026
npm install sequelize@6.37.8
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 4.44.34.44.3npm install sequelize@4.44.3 -
>= 5.0.0, < 5.15.15.15.1npm install sequelize@5.15.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the patched version of Sequelize to mitigate the risk of SQL Injection attacks.
Conclusion
Upgrading to the patched versions of Sequelize is crucial to mitigate the risk of SQL Injection attacks. It is recommended to follow the provided steps to fix the vulnerability and ensure the security of your application. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for sequelize →
FAQ
Sequelize is an ORM library for Node.js that simplifies database access and manipulation by mapping database entries to objects.
SQL Injection is a type of security vulnerability where an attacker can insert malicious SQL statements into an application's database query, potentially gaining unauthorized access or manipulating the database.
An attacker can exploit this vulnerability by injecting SQL statements into user input that is passed to the sequelize.json() function. This can lead to the execution of arbitrary SQL queries and potential unauthorized actions on the database.
The consequences of this vulnerability include unauthorized access to sensitive data, manipulation of the database, and potential disruption of the application's functionality.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.
References
Related vulnerabilities
Recent vulnerabilities recorded for sequelize.