Repository navigation
fix(deps): update dependency sequelize to v6.37.8 [security] - #655
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
March 30, 2026 21:39
8dcda72 to
df1bb91
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
April 27, 2026 23:13
df1bb91 to
48c7662
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
May 5, 2026 05:44
48c7662 to
46207e6
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
May 18, 2026 15:13
eb99130 to
a9cbb7a
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
May 28, 2026 13:52
a9cbb7a to
31ba012
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
June 13, 2026 16:11
31ba012 to
e8d254c
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
July 12, 2026 18:42
e8d254c to
2462e3c
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
October 1, 2026 11:34
2462e3c to
311604e
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
November 6, 2026 00:45
311604e to
2626724
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.32.1→6.37.8Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Sequelize v6 Vulnerable to SQL Injection via JSON Column Cast Type
CVE-2026-30951 / GHSA-6457-6jrx-69cr
More information
Details
Summary
SQL injection via unescaped cast type in JSON/JSONB
whereclause processing. The_traverseJSON()function splits JSON path keys on::to extract a cast type, which is interpolated raw intoCAST(... AS <type>)SQL. An attacker who controls JSON object keys can inject arbitrary SQL and exfiltrate data from any table.Affected: v6.x through 6.37.7. v7 (
@sequelize/core) is not affected.Details
In
src/dialects/abstract/query-generator.js,_traverseJSON()extracts a cast type from::in JSON keys without validation:_castKey()(line 1925) passes it toUtils.Cast, andhandleSequelizeMethod()(line 1692) interpolates it directly:JSON path values are escaped via
this.escape()injsonPathExtractionQuery(), but the cast type is not.Suggested fix — whitelist known SQL data types:
PoC
npm install sequelize@6.37.7 sqlite3Output:
Impact
SQL Injection (CWE-89) — Any application that passes user-controlled objects as
whereclause values for JSON/JSONB columns is vulnerable. An attacker can exfiltrate data from any table in the database via UNION-based or boolean-blind injection. All dialects with JSON support are affected (SQLite, PostgreSQL, MySQL, MariaDB).A common vulnerable pattern:
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Sequelize: SQL Injection (Oracle DB)
CVE-2026-69240 / GHSA-v8fg-2rw7-q452
More information
Details
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
escapefunction defined insql-string.jsdoes not escape quotes if the value starts withTO_TIMESTAMPorTO_DATE.PoC
Suppose the application has the following code:
An attacker can inject arbitrary sql expressions.
http://host/path?firstName=TO_DATE('0','Y')||'' OR 1=1--The resulted SQL will be:
Impact
Data theft and tampering.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
sequelize/sequelize (sequelize)
v6.37.8Compare Source
Security improvements
v6.37.7Compare Source
Bug Fixes
v6.37.6Compare Source
Meta
v6.37.5Compare Source
Bug Fixes
v6.37.4Compare Source
Bug Fixes
v6.37.3Compare Source
Bug Fixes
v6.37.2Compare Source
Bug Fixes
readOnlyto the transaction options types and docs (#17226) (7c8972f)v6.37.1Compare Source
Bug Fixes
returninginSaveOptions. (#16954) (505467b)v6.37.0Compare Source
Features
v6.36.0Compare Source
Features
v6.35.2Compare Source
Bug Fixes
v6.35.1Compare Source
Bug Fixes
v6.35.0Compare Source
Features
findModelto v6 (#16705) (5bfbb99)v6.34.0Compare Source
Bug Fixes
Features
v6.33.0Compare Source
Bug Fixes
Features
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.