{"id":"CVE-2026-30951","published":"2026-03-10T20:22:46Z","modified":"2026-08-20T12:31:50Z","title":"Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type","vendor":"sequelize","product":"sequelize","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0048,"percentile":0.42313,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-30951","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2446250","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:8498","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":8.46},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-04-05","earliestUrl":"https://github.com/EQSTLab/CVE-2026-30951","repos":[{"name":"EQSTLab/CVE-2026-30951","url":"https://github.com/EQSTLab/CVE-2026-30951","stars":2,"created":"2026-04-05"},{"name":"yym8538/CVE-2026-30951","url":"https://github.com/yym8538/CVE-2026-30951","stars":1,"created":"2026-08-21"}]},"first":{"date":"2026-04-05","source":"PoC-in-GitHub","url":"https://github.com/EQSTLab/CVE-2026-30951"},"provenance":"source"},"vendorSlug":"sequelize","affectedVersions":[{"vendor":"sequelize","product":"sequelize","versions":[">= 6.0.0-beta.1, < 6.37.8"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-11T14:40:09.586637Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"sequelize","vulnerableRanges":[">=6.0.0-beta.1, <6.37.8"],"patched":["6.37.8"],"from":["GHSA-6457-6jrx-69cr"],"provenance":"source"}],"summary":{"text":"The flaw is an SQL injection in Sequelize, a Node.js ORM, within its JSON/JSONB where-clause processing: the _traverseJSON() function takes a cast type from the portion of a JSON key after \"::\" and interpolates it unescaped into a CAST(... AS <type>) statement. An attacker who can control the keys of a JSON object passed into such a query can inject arbitrary SQL and read data from any table, with no authentication, user interaction, or special configuration required beyond that key control.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:42Z"},"euvd":{"id":"EUVD-2026-10870","exploited":false,"provenance":"source"}}