SQL Injection in Sequelize
CVE-2023-25813
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.014, 73.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Sequelize — versions < 6.19.1
- Sequelizejs Sequelize
Weakness classification (CWE)
Public exploits and proof-of-concept code
9 public repositories with exploit or proof-of-concept code for this CVE:
- White-BAO/CVE-2023-25813 (1 star, last pushed 2024-08-04): 12
- junhye-park/homework-sequelize-cve-2023-25813 (last pushed 2026-11-14)
- h-gunp/CVE-2023-25813-TEST (last pushed 2026-05-21): Sequelize Sql Injection 취약점 구현
- bde574786/Sequelize-1day-CVE-2023-25813 (last pushed 2025-05-11)
- numbbvi/CVE-2023-25813 (last pushed 2024-11-10): CVE-2023-25813 Vulnerability Reproduction - SQL Injection in Sequelize
- sea-middle/cve-2023-25813 (last pushed 2024-11-09)
- pbj2647/CVE-2023-25813 (last pushed 2024-11-07)
- SOONHO-21/curd_CVE_2023_25813
- wxuycea/CVE-2023-25813
Also mentioned in 5 other repositories (ARPSyndicate/cvemon, colrng/truth3, nomi-sec/PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw (Exploit, 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)
This CVE has public exploit evidence. See the latest CVEs with public exploits.