Skip to main content
← All vulnerabilities
CVE-2026-30951GHSA-6457-6JRX-69CR

Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.37.8
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sequelize sequelize

    From 6.0.0-beta.1 · fixed in 6.37.8

  • sequelizenpm

    From 6.0.0-beta.1 · fixed in 6.37.8

References 3

GitHub · sequelize/sequelize

GitHub · EQSTLab/CVE-2026-30951

GitHub · yym8538/CVE-2026-30951