CVE-2019-10749 SQL Injection in sequelize

Critical 9.8 Published Updated

Attackers can execute arbitrary SQL commands via unsanitized JSON path keys in the Postgres dialect of the Sequelize ORM.

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-10749?

CVE-2019-10749 is a critical SQL injection vulnerability in sequelize, published on 29 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

sequelize before version 3.35.1 allows attackers to perform a SQL Injection due to the JSON path keys not being properly sanitized in the Postgres dialect.

Weakness: CWE-89

Which versions are affected by CVE-2019-10749?

2 open source packages ship an affected version, including sequelize. It affects 1 product.

PackageAffectedFixed in
sequelize npmAll versions3.35.1
sequelize npmAll versions3.35.1

Products include Sequelizejs Sequelize.

How do I fix CVE-2019-10749?

Upgrade sequelize to 3.35.1 or later.

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-10749 being exploited?

There is no known exploitation of CVE-2019-10749 in the wild and no public exploit code.

Sources

Also known as GHSA-2598-2f59-rmhq, SNYK-JS-SEQUELIZE-450222.

Is CVE-2019-10749 in your software?

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

Check your SBOMs for free