CVE-2023-25813
CRITICAL 9.8CVSS 3.1Sequelize vulnerable to SQL Injection via replacements
Sequelize is a Node.js ORM tool. In versions prior to 6.19.1 a SQL injection exploit exists related to replacements. Parameters which are passed through replacements are not properly escaped which can lead to arbitrary SQL injection depending on the specific queries in use. The issue has been fixed in Sequelize 6.19.1. Users are advised to upgrade. Users unable to upgrade should not use the replacements and the where option in the same query.
- Published
- 22 Feb 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-wrh9-cjv3-2hpw
- Sources
- NVDJSONOSV GHSA-wrh9-cjv3-2hpwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sequelizejs | sequelizecpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:* |
< 6.19.1 | 6.19.1 |
| OSV | npm | sequelize | < 6.19.1 | 6.19.1 |
References
- https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b · Patch, WEB
- https://github.com/sequelize/sequelize/issues/14519 · Exploit, Issue Tracking, WEB
- https://github.com/sequelize/sequelize/releases/tag/v6.19.1 · Release Notes, WEB
- https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25813 · ADVISORY
- https://github.com/sequelize/sequelize · PACKAGE
- https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-2932027 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 22 Feb 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Feb 2023)