fix(deps): update dependency sequelize to v6.37.8 [security]#461
Open
abrain-bot wants to merge 1 commit intodevelopfrom
Open
fix(deps): update dependency sequelize to v6.37.8 [security]#461abrain-bot wants to merge 1 commit intodevelopfrom
abrain-bot wants to merge 1 commit intodevelopfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #461 +/- ##
========================================
Coverage 63.68% 63.68%
========================================
Files 83 83
Lines 1005 1005
Branches 89 89
========================================
Hits 640 640
Misses 351 351
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
29086d4 to
aa947ef
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.37.7->6.37.8GitHub Vulnerability Alerts
CVE-2026-30951
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:
Release Notes
sequelize/sequelize (sequelize)
v6.37.8Compare Source
Security improvements
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (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 has been generated by Renovate Bot.