Unescaped cast type SQLi in Sequelize <6.37.8 JSONB
CVE-2026-30951 Published on March 10, 2026
Sequelize 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.
Vulnerability Analysis
CVE-2026-30951 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Weakness Type
What is a SQL Injection Vulnerability?
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
CVE-2026-30951 has been classified to as a SQL Injection vulnerability or weakness.
Products Associated with CVE-2026-30951
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
sequelize:- Version >= 6.0.0-beta.1, < 6.37.8 is affected.
- Version 1776194798 and below * is unaffected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2026-30951
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | sequelize | >= 6.0.0-beta.1, <= 6.37.7 | 6.37.8 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.