CVE-2019-10752 SQL Injection in sequelize

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
sequelize npmAll versions4.44.3
sequelize npmAll versions4.44.3
sequelize npmFrom 5.0.05.15.1
sequelize npmFrom 5.0.05.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.

Sources

Also known as GHSA-m9jw-237r-gvfv.

Is CVE-2019-10752 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free