Vulnerabilities in pkg:npm/sequelize

PACKAGE
Advisory Identifier: GHSA-v8fg-2rw7-q452
Advisory Summary

CVE-2026-69240 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Sequelize libraries in the npm ecosystem. The issue involves sql injection (oracle db). Remediation is available by upgrading affected packages to version 6.37.4.

19 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/sequelize

19 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/sequelize. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-v8fg-2rw7-q452 CVE-2026-69240 CRITICAL Sequelize: SQL Injection (Oracle DB)
GHSA-6457-6jrx-69cr CVE-2026-30951 HIGH Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
GHSA-2777-2vq8-c4v4 CVE-2019-11069 HIGH SQL Injection in sequelize
GHSA-m9jw-237r-gvfv CVE-2019-10752 CRITICAL SQL Injection in sequelize
GHSA-9c2p-jw8p-f84v CVE-2016-10556 HIGH SQL Injection in sequelize
GHSA-wfp9-vr4j-f49j - HIGH NoSQL Injection in sequelize
GHSA-f598-mfpv-gmfx CVE-2023-22578 CRITICAL Sequelize - Default support for “raw attributes” when using parentheses
GHSA-8mwq-mj73-qv68 - CRITICAL Duplicate advisory: Sequelize vulnerable to Improper Filtering of Special Elements
GHSA-vqfx-gj96-3w95 CVE-2023-22579 CRITICAL Unsafe fall-through in getWhereConditions
GHSA-8c25-f3mj-v6h8 CVE-2023-22580 MODERATE Sequelize information disclosure vulnerability
GHSA-wrh9-cjv3-2hpw CVE-2023-25813 CRITICAL Sequelize vulnerable to SQL Injection via replacements
GHSA-5v9h-q3gj-c32x CVE-2016-1000225 CRITICAL SQL Injection via GeoJSON in sequelize
GHSA-xqg8-cv3h-xppv CVE-2015-1369 HIGH SQL Injection in sequelize
GHSA-2598-2f59-rmhq CVE-2019-10749 CRITICAL SQL Injection in sequelize
GHSA-j9xp-92vc-559j CVE-2019-10748 CRITICAL SQL Injection in sequelize
GHSA-fw4p-36j9-rrj3 - MODERATE Denial of Service in sequelize
GHSA-x2jc-pwfj-h9p3 CVE-2016-10554 MODERATE SQL Injection in sequelize
GHSA-98pq-pmw9-4gpm CVE-2016-10550 HIGH SQL Injection in sequelize
GHSA-2v7q-2xqx-f4q5 CVE-2016-10553 HIGH Potential SQL Injection in sequelize

CVE-2026-69240 at a Glance

CVE Identifier CVE-2026-69240
GHSA Identifier GHSA-v8fg-2rw7-q452
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Sequelize
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-69240

To remediate this vulnerability, upgrade all affected Sequelize dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sequelize fixed: 6.37.4
npm install sequelize@6.37.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls sequelize

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-69240, inspect your project dependencies using npm:

npm ls sequelize

Analyze the terminal output to locate any version of Sequelize in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.37.4), your application is affected.

Note: The npm ls sequelize command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Sequelize, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary SQL Injection is possible with strings only **if dialect is set to `oracle`**. The vulnerability was confirmed on Sequelize v6.37.3. ### Details The `escape` function defined in `sql-string.js` does not escape quotes if the value starts with `TO_TIMESTAMP` or `TO_DATE`. ```javascript } else if (dialect === 'oracle' && typeof val === 'string') { if (val.startsWith('TO_TIMESTAMP') || val.startsWith('TO_DATE')) { return val; } val = val.replace(/'/g, "''"); } ``` ### PoC Suppose the application has the following code: ```javascript var result = await models.Student.findOne({ where: { firstName: req.query.firstName } }); ``` An attacker can inject arbitrary sql expressions. `http://host/path?firstName=TO_DATE('0','Y')||'' OR 1=1--` The resulted SQL will be: ```SQL SELECT ... WHERE "Student"."firstName" = TO_DATE('0','Y')||'' OR 1=1-- ORDER BY "Student"."id" OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY; ``` ### Impact Data theft and tampering.

CVE-2026-69240 Affected Sequelize Versions

1 component(s)
Fixed Versions:
6.37.4
Product / Package Ecosystem Affected Versions Fixed Version
sequelize
npm
< 6.37.4
6.37.4

References

Frequently Asked Questions

What is CVE-2026-69240?
CVE-2026-69240 is a security vulnerability in Sequelize involving SQL Injection (Oracle DB) under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Sequelize versions are affected?
Affected versions include releases prior to 6.37.4 across affected packages: sequelize.
What version fixes CVE-2026-69240?
Upgrading to 6.37.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sequelize affected?
Yes, sequelize is affected in releases prior to 6.37.4. Upgrade your dependency to 6.37.4 or later.
What is the CVSS score of CVE-2026-69240?
CVE-2026-69240 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-69240?
CVE-2026-69240 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check npm dependencies for CVE-2026-69240?
Run the dependency tree command: 'npm ls sequelize'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v8fg-2rw7-q452",
  "modified" : "2026-08-03T20:29:50Z",
  "published" : "2026-08-03T20:29:50Z",
  "aliases" : [ "CVE-2026-69240" ],
  "summary" : "Sequelize: SQL Injection (Oracle DB)",
  "details" : "### Summary\nSQL Injection is possible with strings only **if dialect is set to `oracle`**.\nThe vulnerability was confirmed on Sequelize v6.37.3.\n\n### Details\nThe `escape` function defined in `sql-string.js` does not escape quotes if the value starts with `TO_TIMESTAMP` or `TO_DATE`.\n\n```javascript\n  } else if (dialect === 'oracle' && typeof val === 'string') {\n    if (val.startsWith('TO_TIMESTAMP') || val.startsWith('TO_DATE')) {\n      return val;\n    }\n    val = val.replace(/'/g, \"''\");\n  }\n```\n\n### PoC\nSuppose the application has the following code:\n\n```javascript\n  var result = await models.Student.findOne({\n    where: {\n      firstName: req.query.firstName\n    }\n  });\n```\n\nAn attacker can inject arbitrary sql expressions.\n\n`http://host/path?firstName=TO_DATE('0','Y')||'' OR 1=1--`\n\nThe resulted SQL will be:\n\n```SQL\nSELECT ... WHERE \"Student\".\"firstName\" = TO_DATE('0','Y')||'' OR 1=1-- ORDER BY \"Student\".\"id\" OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY;\n```\n\n### Impact\nData theft and tampering.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sequelize"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.37.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sequelize/sequelize/security/advisories/GHSA-v8fg-2rw7-q452"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sequelize/sequelize/commit/5deadd2410ae9136a21fb652db206d27bb715f26"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sequelize/sequelize"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sequelize/sequelize/releases/tag/v6.37.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-03T20:29:50Z",
    "nvd_published_at" : null
  }
}