7.5High

CVE-2026-30951Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type

sequelize sequelize; Red Hat Red Hat Satellite 6.18; Red Hat Confidential Compute Attestation; Red Hat Red Hat Enterprise Linux 10 Published: (8 months ago)

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.

Weakness (CWE): CWE-89

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Red Hat Confidential Compute Attestation all versions
Red Hat Red Hat Enterprise Linux 10 —
Red Hat Red Hat Enterprise Linux 9 —
Red Hat Red Hat Satellite 6.18 all versions
satellite 6.18 —
sequelize sequelize >= 6.0.0-beta.1, < 6.37.8
sequelizejs sequelize < 6.37.8

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:* < 6.37.8