Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2023-25813 EUVD-2023-0814GHSA-wrh9-cjv3-2hpw

SQL Injection via replacements in sequelize

Published Feb 22, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
sequelize sequelize < 6.19.1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 6 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm sequelize < 6.19.1 6.19.1 GHSA-wrh9-cjv3-2hpw

References