CVE-2022-2422 Feathers - SQL injection via attribute aliases

Critical 10.0 Published Updated

Attackers can execute SQL injection attacks on the backend database via attribute aliases when using the Feathers-Sequelize package.

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

What is CVE-2022-2422?

CVE-2022-2422 is a critical SQL injection vulnerability in Feathers-Sequalize, published on 25 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Due to improper input validation in the Feathers js library, it is possible to perform a SQL injection attack on the back-end database, in case the feathers-sequelize package is used.

Weakness: CWE-89

Which versions are affected by CVE-2022-2422?

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

PackageAffectedFixed in
feathers-sequelize npmFrom 6.0.06.3.4
feathers-sequelize npmFrom 6.0.06.3.4

Products include Feathersjs Feathers-Sequelize.

How do I fix CVE-2022-2422?

Upgrade feathers-sequelize to 6.3.4 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-2022-2422 being exploited?

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

Sources

Also known as GHSA-qpv8-4pjq-qqh7.

Is CVE-2022-2422 in your software?

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

Check your SBOMs for free