CVE-2019-10752 SQL Injection in sequelize
Attackers can execute arbitrary SQL commands via the sequelize.json() helper function in Sequelize, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-10752?
CVE-2019-10752 is a critical SQL injection vulnerability in sequelize, published on 17 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.
Weakness: CWE-89
Which versions are affected by CVE-2019-10752?
4 open source packages ship an affected version, including sequelize. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sequelize npm | All versions | 4.44.3 |
sequelize npm | All versions | 4.44.3 |
sequelize npm | From 5.0.0 | 5.15.1 |
sequelize npm | From 5.0.0 | 5.15.1 |
Products include Sequelizejs Sequelize.
How do I fix CVE-2019-10752?
Upgrade sequelize to a fixed version for your release line: 4.44.3 or 5.15.1.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2019-10752 being exploited?
There is no known exploitation of CVE-2019-10752 in the wild and no public exploit code.
Other vulnerabilities in sequelize
Sources
Also known as GHSA-m9jw-237r-gvfv.