CVE-2019-10752: SQL Injection

Published Oct 17, 2019
·
Updated

Affected versions of sequelize are vulnerable to SQL Injection. The function sequelize.json() incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query. Exploitation example:

js return User.findAll({ where: this.sequelize.json("data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- ", 1) });

Recommendation

If you are using sequelize 5.x, upgrade to version 5.15.1 or later. If you are using sequelize 4.x, upgrade to version 4.44.3 or later.

Other sources

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.

Affected Software

4 affected componentsFixes available
npm/sequelize>=5.0.0<5.15.1
5.15.1
npm/sequelize<4.44.3
4.44.3
Sequelizejs Sequelize Node.js>=4.0.0<4.44.3
Sequelizejs Sequelize Node.js>=5.0.0<5.15.1

Event History

Oct 17, 2019
CVE Published
via MITRE·06:12 PM
Data Sourced
via MITRE·06:12 PM
DescriptionWeakness
Oct 25, 2019
Advisory Published
07:43 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-10752?

CVE-2019-10752 is a vulnerability in the Sequelize library which allows SQL Injection attacks.

2

What is the severity of CVE-2019-10752?

CVE-2019-10752 has a severity rating of 9.8 (Critical).

3

How does CVE-2019-10752 work?

CVE-2019-10752 allows attackers to inject SQL statements and execute arbitrary SQL queries by incorrectly formatting sub paths for JSON queries in the Sequelize library.

4

Which versions of Sequelize are affected by CVE-2019-10752?

Sequelize versions prior to version 4.44.3 and 5.15.1 are affected by CVE-2019-10752.

5

How can I fix the CVE-2019-10752 vulnerability?

To fix the CVE-2019-10752 vulnerability, update to Sequelize version 4.44.3 or 5.15.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2019-10752 - SQL Injection - SecAlerts