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.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)1.4%top 26.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
npmsequelize6.19.1GHSA-wrh9-cjv3-2hpw

Affected products (as reported)

VendorProductVersions
sequelize sequelize < 6.19.1

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References