CVE-2019-10752

Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly…

published October 17, 2019

CVSS
—
EPSS
1%
Percentile
73.4
In the wild
Unconfirmed
What it is

⚡ SQL injection is lurking in Sequelize versions prior to 4.44.3 and 5.15.1! A sneaky helper function that doesn't escape values properly could spell trouble for your JSON queries. 🔥 Think of it like a restaurant where the chef doesn't double-check the ingredients before whipping up your meal — if a sneaky allergen makes its way in, it could cause a serious reaction. 🎭 In this scenario, an attacker could craft a clever input and run arbitrary SQL commands, potentially gaining unauthorized access to sensitive data or manipulating your database. It's like leaving the backdoor of your kitchen wide open and inviting an intruder to play chef!

Put simply

Think of it like a restaurant where the chef doesn't double-check the ingredients before whipping up your meal — if a sneaky allergen makes its way in, it could cause a serious reaction. 🎭 This vulnerability arises because the `sequelize.json()` helper function fails to properly escape values when formatting sub-paths for JSON queries in MySQL, MariaDB, and SQLite. This oversight allows for SQL injection attacks, enabling malicious users to execute unintended queries.

What to do

In this scenario, an attacker could craft a clever input and run arbitrary SQL commands, potentially gaining unauthorized access to sensitive data or manipulating your database. It's like leaving the backdoor of your kitchen wide open and inviting an intruder to play chef! To mitigate this vulnerability, update Sequelize to version 4.44.3 or 5.15.1 or later. Additionally, ensure you are using proper input sanitization and validation practices when handling user inputs to further protect your application. You’ve got this! By following these steps, you’ll be well on your way to securing your application in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01462 · 73.4th percentile
Published
2019-10-17T18:12Z
EPSS history
Timeline
  • 17 OCT 18:12Z
    Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly…
    cvelistv5