Sequelize
Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.0.0-beta.1, < 6.37.8
Fixed in 6.37.8
Mitigation
Upgrade sequelize to 6.37.8 or later.
References
- Vendor advisory github.com/sequelize/sequelize/security/adviso…
Timeline
Days relative to CVE publicationFirst public PoC 26 days after publication; not in CISA KEV. First PoC: EQSTLab/CVE-2026-30951 (created 5 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2026-30951 | 5 Apr 2026 +26 d | 1 | PoC |
| yym8538/CVE-2026-30951 | 21 Aug 2026 +163 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/users/search
- Content-Type
application/json- Ports
- 9100
- Seen in
- 2 repos: EQSTLab/CVE-2026-30951, yym8538/CVE-2026-30951
- Evidence
- EQSTLab/CVE-2026-30951/app.js:395 yym8538/CVE-2026-30951/app.js:395
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/users/search(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [9100] (msg:"GG PoC-Monitor CVE-2026-30951 sequelize sequelize exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/users/search"; reference:url,poc.griffinguard.io/cve/CVE-2026-30951; classtype:web-application-attack; sid:9233036; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: sequelize sequelize exploit attempt (CVE-2026-30951)
id: gg-pocmon-cve-2026-30951-9233036
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-30951. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-30951
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/users/search'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.30951