CVE-2019-10752: SQL Injection in sequelize
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61609%
CWE
Published
10/25/2019
Updated
9/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
sequelize | npm | < 4.44.3 | 4.44.3 |
sequelize | npm | >= 5.0.0, < 5.15.1 | 5.15.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from three key points: 1) The MySQL query generator's custom JSON path handling used unsafe string concatenation. 2) MariaDB's implementation had similar vulnerable path formatting logic. 3) The abstract query generator's path processing for JSON queries (jsonPathExtractionQuery) didn't properly handle numeric subpaths, allowing injection through crafted path components. The commit diff shows these functions were modified in the patch, and the exploitation example demonstrates SQL
injection through path manipulation in sequelize.json()
.