CVE-2026-30951
HIGH 7.5CVSS 3.1Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
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.
- Published
- 10 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-6457-6jrx-69cr
- Sources
- NVDJSONOSV GHSA-6457-6jrx-69crJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sequelizejs | sequelizecpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:* |
< 6.37.8 | 6.37.8 |
| OSV | npm | sequelize | >= 6.0.0-beta.1, < 6.37.8 | 6.37.8 |
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr · Exploit, Mitigation, Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:8498
- https://access.redhat.com/security/cve/CVE-2026-30951
- https://bugzilla.redhat.com/show_bug.cgi?id=2446250
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-30951 · ADVISORY
- https://github.com/sequelize/sequelize · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Mar 2026)