CVE-2026-30951
SQL Injection in Sequelize JSONB Cast Allows Data Exfiltration
Publication date: 2026-03-10
Last updated on: 2026-03-18
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| sequelizejs | sequelize | to 6.37.8 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product 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. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in Sequelize, a Node.js ORM tool, prior to version 6.37.8. It involves SQL injection through unescaped cast types in JSON/JSONB where clause processing. Specifically, the _traverseJSON() function splits JSON path keys on :: to extract a cast type, which is then directly interpolated into the SQL CAST statement without proper escaping. An attacker who can control JSON object keys can exploit this to inject arbitrary SQL commands.
This allows the attacker to execute unauthorized SQL queries and potentially exfiltrate data from any database table.
How can this vulnerability impact me? :
The vulnerability can lead to unauthorized data access and data exfiltration from your database. Since an attacker can inject arbitrary SQL, they may retrieve sensitive information from any table, compromising confidentiality.
The CVSS score of 7.5 indicates a high severity, meaning the vulnerability is exploitable remotely without authentication and can cause significant data breaches.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, upgrade Sequelize to version 6.37.8 or later, where the SQL injection issue via unescaped cast type in JSON/JSONB where clause processing is fixed.