CVE-2016-10554 SQL Injection in sequelize

Critical 9.8 Published Updated

Attackers can exploit incorrect SQLite escaping to perform SQL injection, allowing unauthorized data access or modification in Node.js applications.

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

CVE-2016-10554 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. Before version 1.7.0-alpha3, sequelize defaulted SQLite to use MySQL backslash escaping, even though SQLite uses Postgres escaping.

Weakness: CWE-89

Which versions are affected by CVE-2016-10554?

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

PackageAffectedFixed in
sequelize npmAll versions1.7.0
sequelize npmAll versions1.7.0

Products include Sequelizejs Sequelize.

How do I fix CVE-2016-10554?

Upgrade sequelize to 1.7.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-10554 being exploited?

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

Sources

Also known as GHSA-x2jc-pwfj-h9p3.

Is CVE-2016-10554 in your software?

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

Check your SBOMs for free