CVE-2023-22579 Sequalize - Unsafe fall-through in getWhereConditions

Critical 9.9 Published Updated

Attackers can perform SQL injection via improper parameter filtering in the Sequelize.js library, potentially accessing or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-22579?

CVE-2023-22579 is a critical SQL injection vulnerability in Feathers-Sequalize Sequelize.js, published on 16 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Due to improper parameter filtering in the sequalize js library, can a attacker peform injection.

Weakness: CWE-843

Which versions are affected by CVE-2023-22579?

4 open source packages ship an affected version, including @sequelize/core and sequelize. It affects 1 product.

PackageAffectedFixed in
@sequelize/core npmAll versions7.0.0-alpha.20
@sequelize/core npmAll versions7.0.0-alpha.20
sequelize npmAll versions6.28.1
sequelize npmAll versions6.28.1

Products include Sequelizejs Sequelize.

How do I fix CVE-2023-22579?

Upgrade @sequelize/core to 7.0.0-alpha.20 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-2023-22579 being exploited?

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

Sources

Also known as GHSA-vqfx-gj96-3w95.

Is CVE-2023-22579 in your software?

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

Check your SBOMs for free