CVE-2016-10550 SQL Injection in sequelize

Critical 9.8 Published Updated

Attackers can execute arbitrary SQL commands via the limit or order parameters in the Sequelize Node.js ORM library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-10550?

CVE-2016-10550 is a critical SQL injection vulnerability in HackerOne sequelize node module, published on 31 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server into usable data for NodeJS If user input goes into the `limit` or `order` parameters, a malicious user can put in their own SQL statements. This affects sequelize 3.16.0 and earlier.

Weakness: CWE-89

Which versions are affected by CVE-2016-10550?

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

PackageAffectedFixed in
sequelize npmAll versions3.17.0
sequelize npmAll versions3.17.0

Products include Sequelizejs Sequelize.

How do I fix CVE-2016-10550?

Upgrade sequelize to 3.17.0 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-2016-10550 being exploited?

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

Sources

Also known as GHSA-98pq-pmw9-4gpm.

Is CVE-2016-10550 in your software?

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

Check your SBOMs for free