GHSA-wfp9-vr4j-f49j NoSQL Injection in sequelize
Attackers can inject NoSQL operators to alter database queries, potentially reading or modifying data, requiring an upgrade to the sequelize library.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-wfp9-vr4j-f49j?
GHSA-wfp9-vr4j-f49j is a SQL injection vulnerability in sequelize, published on 4 Jun 2019. It can be exploited over the network, with no action from the victim.
Official description
Versions of sequelize prior to 4.12.0 are vulnerable to NoSQL Injection. Query operators such as $gt are not properly sanitized and may allow an attacker to alter data queries, leading to NoSQL Injection.
Recommendation
Upgrade to version 4.12.0 or later
Which versions are affected by GHSA-wfp9-vr4j-f49j?
2 open source packages ship an affected version, including sequelize.
| Package | Affected | Fixed in |
|---|---|---|
sequelize npm | All versions | 4.12.0 |
sequelize npm | All versions | 4.12.0 |
How do I fix GHSA-wfp9-vr4j-f49j?
Upgrade sequelize to 4.12.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 GHSA-wfp9-vr4j-f49j being exploited?
There is no known exploitation of GHSA-wfp9-vr4j-f49j in the wild and no public exploit code.