CVE-2023-25813 SQL Injection via replacements in sequelize
CriticalCVSS 9.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm sequelize(npm) | < 6.19.1 | 6.19.1 | Fixed |
| sequelizejs sequelize | < 6.19.1 | 6.19.1 | Fixed |
| sequelize | = < 6.19.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm sequelize(npm) | < 6.19.1 | 6.19.1 |
| sequelize | = < 6.19.1 | No fix listed |
| sequelizejs sequelize | < 6.19.1 | 6.19.1 |
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/sequelize/sequelize/issues/14519 exploit issue-tracking
- https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b patch
- https://github.com/sequelize/sequelize/releases/tag/v6.19.1 release-notes
- security.snyk.io
- github.com
- github.com product