This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
fix(deps): update dependency sequelize to v6.29.0 [security] #283
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.21.2
->6.29.0
GitHub Vulnerability Alerts
CVE-2023-22580
Due to improper input filtering in the sequelize js library, can malicious queries lead to sensitive information disclosure.
CVE-2023-22579
Impact
Providing an invalid value to the
where
option 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-20
References
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
CVE-2023-22578
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-20
andsequelize@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
rawAttributes
property of your model first.A discussion thread about this issue is open at https://github.com/sequelize/sequelize/discussions/15694
CVE: CVE-2023-22578
Release Notes
sequelize/sequelize
v6.29.0
Compare Source
Features
v6.28.2
Compare Source
Bug Fixes
v6.28.1
Compare Source
Bug Fixes
v6.28.0
Compare Source
Features
v6.27.0
Compare Source
Features
v6.26.0
Compare Source
Features
v6.25.8
Compare Source
Bug Fixes
v6.25.7
Compare Source
Bug Fixes
v6.25.6
Compare Source
Bug Fixes
v6.25.5
Compare Source
Bug Fixes
v6.25.4
Compare Source
Bug Fixes
v6.25.3
Compare Source
Bug Fixes
v6.25.2
Compare Source
Bug Fixes
InferAttributes
(v6) (#15135) (851daaf)v6.25.1
Compare Source
Bug Fixes
v6.25.0
Compare Source
Features
dialectOptions.connectString
(#15042) (06ad05d)v6.24.0
Compare Source
Features
QueryGenerator#tableExistsQuery
(#15087) (a44772e)v6.23.2
Compare Source
Bug Fixes
v6.23.1
Compare Source
Bug Fixes
v6.23.0
Compare Source
Features
v6.22.1
Compare Source
Bug Fixes
v6.22.0
Compare Source
Features
v6.21.6
Compare Source
Bug Fixes
v6.21.5
Compare Source
Bug Fixes
v6.21.4
Compare Source
Bug Fixes
v6.21.3
Compare Source
Bug Fixes
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 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 has been generated by Mend Renovate. View repository job log here.