What’s Vulnerable › Vulnerabilities

CVE-2023-25813: SQL Injection via replacements in sequelize

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

How to fix

Upgrade to a fixed version: sequelize 6.19.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-25813 or the next vulnerability affects your stack