CVE-2023-25813CWE-89

SQL Injection via replacements in sequelize

Critical · published February 22, 2023

CVSS v3.1
10.0
EPSS
1%
Percentile
73.0
In the wild
Unconfirmed
What it is

🚨 SQL injection in Sequelize is a sneaky exploit waiting to happen! If you're running versions prior to 6.19.1, your queries might be more vulnerable than you think! 🔥 Think of it like a restaurant that serves up your favorite dish, but with a chef who doesn't check their ingredients. If they use contaminated or incorrect items, the meal can turn toxic—just like how this SQL injection flaw allows attackers to alter your database queries without proper checks. An attacker could exploit this vulnerability to manipulate your database, possibly leading to unauthorized access, data corruption, or even full control of your application. That's a nightmarishly devastating scenario for any developer—and a terrible dining experience for your users!

Put simply

Think of it like a restaurant that serves up your favorite dish, but with a chef who doesn't check their ingredients. If they use contaminated or incorrect items, the meal can turn toxic—just like how this SQL injection flaw allows attackers to alter your database queries without proper checks. This SQL injection vulnerability arises because parameters passed through Sequelize's `replacements` feature aren't properly escaped. This makes it possible for attackers to inject malicious SQL code into your queries.

What to do

An attacker could exploit this vulnerability to manipulate your database, possibly leading to unauthorized access, data corruption, or even full control of your application. That's a nightmarishly devastating scenario for any developer—and a terrible dining experience for your users! To safeguard your application, upgrade to Sequelize version 6.19.1 immediately. If that's not feasible, avoid using the `replacements` and `where` options in the same query to prevent exploitation. Stay vigilant and keep your codebase healthy! You've got this! Fixing this vulnerability is a quick win for your security game! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01444 · 73.0th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2023-02-22T18:14Z
EPSS history
Timeline
  • 22 FEB 18:14Z
    SQL Injection via replacements in sequelize
    cvelistv5