Vulnerability · Published Feb 22, 2023 · Assigned by GitHub_M
CVE-2023-25813SQL Injection via replacements in sequelize
Critical 10.0
In plain English
A critical-severity SQL injection in sequelize from sequelize. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | sequelize | 6.19.1 | GHSA-wrh9-cjv3-2hpw |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw x_refsource_CONFIRM
- https://github.com/sequelize/sequelize/issues/14519 x_refsource_MISC
- https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b x_refsource_MISC
- https://github.com/sequelize/sequelize/releases/tag/v6.19.1 x_refsource_MISC