Update dependency sequelize to v6.37.8 [SECURITY] - #76
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
August 28, 2024 07:48
f5e6e4b to
4e65944
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
October 9, 2024 10:30
4e65944 to
35d903b
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
October 24, 2024 20:27
35d903b to
f5b2c4d
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
December 2, 2024 08:31
f5b2c4d to
4923616
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
January 30, 2025 16:58
23649eb to
d459472
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
February 9, 2025 14:52
d459472 to
da2d58a
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
March 3, 2025 17:22
da2d58a to
713d9a9
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
March 11, 2025 13:14
713d9a9 to
442842d
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
April 8, 2025 10:03
5c299f0 to
523e401
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
April 24, 2025 10:55
523e401 to
4c087a8
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
May 19, 2025 16:31
4c087a8 to
f2fec21
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
June 4, 2025 09:49
290b0b8 to
330cb78
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
June 22, 2025 12:30
330cb78 to
ff85f26
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
July 2, 2025 14:57
ff85f26 to
5c5b4dc
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
August 10, 2025 14:34
5c5b4dc to
d57449a
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
August 19, 2025 13:34
d57449a to
526211e
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
September 25, 2025 15:43
526211e to
833ff6d
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
October 21, 2025 09:56
833ff6d to
683cb37
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
November 10, 2025 19:45
683cb37 to
0011e41
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
November 18, 2025 22:32
0011e41 to
3acdd26
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
December 31, 2025 15:36
3acdd26 to
5009aef
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
January 23, 2026 17:15
994fb57 to
cc962b5
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
February 2, 2026 21:06
cc962b5 to
b4dd494
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
February 12, 2026 18:32
b4dd494 to
7e8d5cc
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
March 5, 2026 14:50
7e8d5cc to
8384bd0
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
March 13, 2026 10:50
8384bd0 to
79cd3d9
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
March 30, 2026 17:36
79cd3d9 to
404a559
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
April 8, 2026 18:09
404a559 to
b992e1a
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
April 27, 2026 23:29
b992e1a to
0c4e34b
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
2 times, most recently
from
May 18, 2026 18:39
443bec8 to
8d4906e
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
May 28, 2026 17:34
8d4906e to
9dc90fc
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
June 11, 2026 13:56
9dc90fc to
f6afe57
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
July 12, 2026 11:54
f6afe57 to
3f6c5a4
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
July 30, 2026 20:52
3f6c5a4 to
8190cff
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
August 12, 2026 01:46
8190cff to
7a816de
Compare
renovate
Bot
force-pushed
the
renovate/npm-sequelize-vulnerability
branch
from
August 26, 2026 17:17
7a816de to
c194eb6
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.5.0→6.37.8Sequelize vulnerable to SQL Injection via replacements
CVE-2023-25813 / GHSA-wrh9-cjv3-2hpw
More information
Details
Impact
The SQL injection exploit is related to replacements. Here is such an example:
In the following query, some parameters are passed through replacements, and some are passed directly through the
whereoption.This is a very legitimate use case, but this query was vulnerable to SQL injection due to how Sequelize processed the query: Sequelize built a first query using the
whereoption, then passed it over tosequelize.querywhich parsed the resulting SQL to inject all:replacements.If the user passed values such as
{ "firstName": "OR true; DROP TABLE users;", "lastName": ":firstName" }Sequelize would first generate this query:
Then would inject replacements in it, which resulted in this:
As you can see this resulted in arbitrary user-provided SQL being executed.
Patches
The issue was fixed in Sequelize 6.19.1
Workarounds
Do not use the
replacementsand thewhereoption in the same query if you are not using Sequelize >= 6.19.1References
See this thread for more information: https://github.com/sequelize/sequelize/issues/14519
Snyk: https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-2932027
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Sequelize information disclosure vulnerability
CVE-2023-22580 / GHSA-8c25-f3mj-v6h8
More information
Details
Due to improper input filtering in the sequelize js library, can malicious queries lead to sensitive information disclosure.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Unsafe fall-through in getWhereConditions
CVE-2023-22579 / GHSA-vqfx-gj96-3w95
More information
Details
Impact
Providing an invalid value to the
whereoption of a query caused Sequelize to ignore that option instead of throwing an error.A finder call like the following did not throw an error:
As this option is typically used with plain javascript objects, be aware that this only happens at the top level of this option.
Patches
This issue has been patched in
sequelize@6.28.1&@sequelize/core@7.0.0.alpha-20References
A discussion thread about this issue is open at https://github.com/sequelize/sequelize/discussions/15698
CVE: CVE-2023-22579
Snyk: https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-3324090
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Sequelize - Default support for “raw attributes” when using parentheses
CVE-2023-22578 / GHSA-f598-mfpv-gmfx
More information
Details
Impact
Sequelize 6.28.2 and prior has a dangerous feature where using parentheses in the attribute option would make Sequelize use the string as-is in the SQL
Produced
Patches
This feature was deprecated in Sequelize 5, and using it prints a deprecation warning.
This issue has been patched in
@sequelize/core@7.0.0.alpha-20andsequelize@6.29.0.In Sequelize 7, it now produces the following:
In Sequelize 6, it throws an error explaining that we had to introduce a breaking change, and requires the user to explicitly opt-in to either the Sequelize 7 behavior (always escape) or the Sequelize 5 behavior (inline attributes that include
()without escaping). See https://github.com/sequelize/sequelize/pull/15710 for more information.Mitigations
Do not use user-provided content to build your list or attributes. If you do, make sure that attribute in question actually exists on your model by checking that it exists in the
rawAttributesproperty of your model first.A discussion thread about this issue is open at https://github.com/sequelize/sequelize/discussions/15694
CVE: CVE-2023-22578
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
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
v6.32.1Compare Source
Bug Fixes
v6.32.0Compare Source
Bug Fixes
typescondition to the front (#16085) (99c3530)Features
v6.31.1Compare Source
Bug Fixes
v6.31.0Compare Source
Bug Fixes
Features
v6.30.0Compare Source
Bug Fixes
Features
v6.29.3Compare Source
Bug Fixes
v6.29.2Compare Source
Bug Fixes
v6.29.1Compare Source
Bug Fixes
v6.29.0Compare Source
Features
v6.28.2Compare Source
Bug Fixes
v6.28.1Compare Source
Bug Fixes
v6.28.0Compare Source
Features
v6.27.0Compare Source
Features
v6.26.0Compare Source
Features
v6.25.8Compare Source
Bug Fixes
v6.25.7Compare Source
Bug Fixes
v6.25.6Compare Source
Bug Fixes
v6.25.5Compare Source
Bug Fixes
v6.25.4Compare Source
Bug Fixes
v6.25.3Compare Source
Bug Fixes
v6.25.2Compare Source
Bug Fixes
InferAttributes(v6) (#15135) (851daaf)v6.25.1Compare Source
Bug Fixes
v6.25.0Compare Source
Features
dialectOptions.connectString(#15042) (06ad05d)v6.24.0Compare Source
Features
QueryGenerator#tableExistsQuery(#15087) (a44772e)v6.23.2Compare Source
Bug Fixes
v6.23.1Compare Source
Bug Fixes
v6.23.0Compare Source
Features
v6.22.1Compare Source
Bug Fixes
v6.22.0Compare Source
Features
v6.21.6Compare Source
Bug Fixes
v6.21.5Compare Source
Bug Fixes
v6.21.4Compare Source
Bug Fixes
v6.21.3Compare Source
Bug Fixes
v6.21.2Compare Source
Bug Fixes
$infnargs (#14678) (7bb60e3)v6.21.1Compare Source
Bug Fixes
v6.21.0Compare Source
Features
v6.20.1Compare Source
Bug Fixes
v6.20.0Compare Source
Features
v6.19.2Compare Source
Bug Fixes
ARRAY[]& followed by;(#14518) (e37c572)v6.19.1Compare Source
Bug Fixes
:replacementsinside of strings (#14472) (ccaa399)v6.19.0Compare Source
Bug Fixes
WhereOptionsmore accurate (#14368) (0d0aade)Features
Model.initaware of pre-configured foreign keys (#14370) (5954d2c)v6.18.0Compare Source
Features
v6.17.0Compare Source
Bug Fixes
GroupedCountResultIteminterface (#14154) (a81b7ab)Model.update(#14155) (b80aeed)Features
Model.getAttributesstricter (#14017) (e974e20)v6.16.3Compare Source
Bug Fixes
v6.16.2Compare Source
Bug Fixes
v6.16.1Compare Source
Bug Fixes
package.jsonin Sequelize.version (#14073) (b95c213)v6.16.0Compare Source
Features
v6.15.1Compare Source
Bug Fixes
$nested.syntax$in WhereAttributeHash (#13983) (4a513cf)Sequelize.where(#14018) (99c612b)v6.15.0Compare Source
Bug Fixes
Features
Sequelize#querymethod (#13881) (7c58851)v6.14.1Compare Source
Bug Fixes
v6.14.0Compare Source
Bug Fixes
countand `Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.