Lucene search

K
osvGoogleOSV:GHSA-M9JW-237R-GVFV
HistoryOct 25, 2019 - 7:43 p.m.

SQL Injection in sequelize

2019-10-2519:43:16
Google
osv.dev
9

EPSS

0.002

Percentile

61.1%

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.

EPSS

0.002

Percentile

61.1%

Related for OSV:GHSA-M9JW-237R-GVFV