CVE-2026-30951
Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
- State
- Published
- Severity
- 7.5 High
- Published
- Mar 10, 2026
- Updated
- Aug 20, 2026
- Reserved
- Mar 7, 2026
Description
Sequelize is a Node.js ORM tool. Prior to 6.37.8, there is SQL injection via unescaped cast type in JSON/JSONB where clause processing. The _traverseJSON() function splits JSON path keys on :: to extract a cast type, which is interpolated raw into CAST(... AS <type>) SQL. An attacker who controls JSON object keys can inject arbitrary SQL and exfiltrate data from any table. This vulnerability is fixed in 6.37.8.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | redhat-SADP |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Products
| Product | Versions |
|---|---|
sequelizesequelize |
|
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr
- https://access.redhat.com/security/cve/CVE-2026-30951vdb-entry
- RHBZ#2446250issue-tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json
- https://access.redhat.com/errata/RHSA-2026:8498vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.