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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sequelize | sequelize | >= 6.0.0-beta.1, < 6.37.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | sqlpad | 7.5.7-r14 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
yym8538/CVE-2026-30951 ★ 1 · Aug 21, 2026
-
EQSTLab/CVE-2026-30951 ★ 1 · Apr 5, 2026
Sequelize JSON Cast SQL Injection
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | sequelize | >= 6.0.0-beta.1, < 6.37.8 | 6.37.8 | GHSA-6457-6jrx-69cr |
Advisories 1
- WID-SEC-2026-1160 Red Hat Enterprise Linux und Satellite (satellite/iop-remediations-rhel9 container image): Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026