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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 58.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
npmsequelize6.37.8GHSA-6457-6jrx-69cr

Affected products (as reported)

VendorProductVersions
sequelize sequelize >= 6.0.0-beta.1, < 6.37.8

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References