Vulnerability · Published Mar 10, 2026 · Assigned by GitHub_M
CVE-2026-30951Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
High 7.5
In plain English
A high-severity SQL injection in sequelize from sequelize. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | sequelize | 6.37.8 | GHSA-6457-6jrx-69cr |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2026-30951 vdb-entry, x_refsource_REDHAT
- RHBZ#2446250 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:8498 vendor-advisory, x_refsource_REDHAT