Vulnerability GHSA-m9jw-237r-gvfv
Critical
CRITICAL RISK
CVSS Score: 9.8
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
7 years ago
October 25, 2019 at 07:43 PM UTC
SQL Injection in sequelize
<4.44.3, >=5.0.0 <5.15.1
<4.44.3, >=5.0.0 <5.15.1
Summary
SQL Injection in sequelize
Details
Affected versions of sequelize are vulnerable to SQL Injection. The function sequelize.json() incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query. Exploitation example:
return User.findAll({
where: this.sequelize.json("data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- ", 1)
});
Recommendation
If you are using sequelize 5.x, upgrade to version 5.15.1 or later. If you are using sequelize 4.x, upgrade to version 4.44.3 or later.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Critical
4 months ago
Sequelize: SQL Injection (Oracle DB)
<6.37.4 GHSA-v8fg-2rw7-q452
<6.37.4 GHSA-v8fg-2rw7-q452
High Risk
8 months ago
Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
>=6.0.0-beta.1 <6.37.8 GHSA-6457-6jrx-69cr
>=6.0.0-beta.1 <6.37.8 GHSA-6457-6jrx-69cr
Critical
3 years ago
Sequelize - Default support for “raw attributes” when using parentheses
<6.29.0 GHSA-f598-mfpv-gmfx
<6.29.0 GHSA-f598-mfpv-gmfx
Critical
3 years ago
Unsafe fall-through in getWhereConditions
<6.28.1 GHSA-vqfx-gj96-3w95
<6.28.1 GHSA-vqfx-gj96-3w95
Critical
3 years ago
Sequelize vulnerable to SQL Injection via replacements
<6.19.1 GHSA-wrh9-cjv3-2hpw
<6.19.1 GHSA-wrh9-cjv3-2hpw
Impacted packages
Timeline
Published
7 years ago
October 25, 2019 at 07:43 PM UTC
Last Modified
5 hours ago
December 02, 2026 at 07:10 AM UTC