Security: Fix critical SQL injection in sequelize (CVE-2023-25813) - #38
Open
swinton wants to merge 2 commits into
Open
Security: Fix critical SQL injection in sequelize (CVE-2023-25813)#38swinton wants to merge 2 commits into
swinton wants to merge 2 commits into
Conversation
…njection Resolves: SNYK-JS-SEQUELIZE-2932027 (CVE-2023-25813) Severity: Critical Also fixes 12 additional high/medium issues in sequelize and its transitive dependencies (semver, dottie, validator). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
⛔ Snyk checks have failed. 2 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Member
Author
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
swinton
commented
Apr 1, 2026
| @@ -0,0 +1,27 @@ | |||
| const express = require('express'); | |||
| const sqlite3 = require('sqlite3').verbose(); | |||
| const app = express(); | |||
Member
Author
There was a problem hiding this comment.
Information Exposure - X-Powered-By Header
Disable X-Powered-By header for your Express app (consider using Helmet middleware), because it exposes information about the used framework to potential attackers.
Line 3 | CWE-200 | Priority score 600 | Learn more about this vulnerability
|
|
||
| const query = `SELECT * FROM users WHERE username = '${username}' AND password = '${password}'`; | ||
|
|
||
| db.get(query, (err, row) => { |
Member
Author
There was a problem hiding this comment.
SQL Injection
Unsanitized input from the HTTP request body flows into get, where it is used in an SQL query. This may result in an SQL Injection vulnerability.
Line 20 | CWE-89 | Priority score 850 | Learn more about this vulnerability
Data flow: 9 steps
Step 1 - 4
Line 16 in fe30622
Step 5 - 7 app.js#L18
Step 8 - 9
Line 20 in fe30622
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.
Security Fix
Vulnerability Details
Changes Made
Upgraded
sequelizefrom6.1.0→6.37.8to patch a critical SQL Injection vulnerability where unsanitized input could be injected directly into SQL queries.Additional Issues Fixed (13 total)
Files Changed
package.json— bumped sequelize to^6.37.8package-lock.json— regenerated lockfileValidation
npm installsucceeded cleanly🤖 Generated with Claude Code