Vulnerabilities in pkg:npm/sequelize
PACKAGECVE-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.
pkg:npm/sequelize
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
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).
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.
npm install sequelize@6.37.4
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
CVE-2026-69240 Affected Sequelize Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sequelize
|
npm |
< 6.37.4
|
6.37.4
|
References
Frequently Asked Questions
What is CVE-2026-69240?
Which Sequelize versions are affected?
What version fixes CVE-2026-69240?
Is sequelize affected?
What is the CVSS score of CVE-2026-69240?
What CWE is associated with CVE-2026-69240?
How can I check npm dependencies for CVE-2026-69240?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}