Skip to content
Heist/ feed
Back to feed
High

Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-30951
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:15 UTC · Revision 1

Source evidence

Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type

core-osv · Original source

Published 10 Mar 2026, 20:22 UTC

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

osv:CVE-2026-30951
Complete source record
{
  "id": "5fbe2ed065eaedbe206622c8548189b634c58b043110af82c34b29130302448d",
  "url": "https://osv.dev/vulnerability/CVE-2026-30951",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type",
    "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 ) 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.",
    "evidence": "osv:CVE-2026-30951",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-30951",
      "aliases": [
        "CVE-2026-30951",
        "GHSA-6457-6jrx-69cr"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sequelize/sequelize",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ae06b4552bfcda5a91089c2f3a71d7897b9205b9"
                },
                {
                  "fixed": "cb7f99ad05de56137672ab95586359ff6ceba004"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "6.0.0-beta.1"
                      },
                      {
                        "fixed": "6.37.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.37.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30951.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.820454995Z",
      "provider": "osv",
      "references": [
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json",
        "https://access.redhat.com/errata/RHSA-2026:8498",
        "https://access.redhat.com/security/cve/CVE-2026-30951",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30951.json",
        "https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-30951",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2446250"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30951.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-30951",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507124,
  "published_at": "2026-03-10T20:22:46.15+00:00"
}