logo

CVE-2019-10752 sequelize

Package

Manager: npm
Name: sequelize
Vulnerable Version: >=0 <4.44.3 || >=5.0.0 <5.15.1

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00427 pctl0.61607

Details

SQL Injection in sequelize 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: ```js 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.

Metadata

Created: 2019-10-25T19:43:16Z
Modified: 2023-09-11T22:39:40Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-m9jw-237r-gvfv/GHSA-m9jw-237r-gvfv.json
CWE IDs: ["CWE-89"]
Alternative ID: GHSA-m9jw-237r-gvfv
Finding: F297
Auto approve: 1