CVE-2015-9244CWE-89

Keys of objects in mysql node module v2.0.0-alpha7 and earlier are not escaped with `mysql.escape()` which could lead to SQL Injection

published May 29, 2018

CVSS
—
EPSS
2%
Percentile
84.1
In the wild
Unconfirmed
What it is

⚠️ A surprising oversight in the mysql node module could let attackers slip SQL commands right through the door! 🚪🔑 Think of it like a restaurant where the kitchen takes any order without checking if the ingredients are safe. If someone orders something that shouldn’t be on the menu, chaos can ensue - and that’s what can happen here with unescaped keys! An attacker could craft a malicious object that executes arbitrary SQL commands, potentially gaining unauthorized access to sensitive data or even manipulating the database. This could lead to data leaks or major disruptions in your application’s functionality, which can be absolutely devastating!

Put simply

Think of it like a restaurant where the kitchen takes any order without checking if the ingredients are safe. If someone orders something that shouldn’t be on the menu, chaos can ensue - and that’s what can happen here with unescaped keys! The vulnerability arises because keys of objects in the mysql node module v2.0.0-alpha7 and earlier aren’t escaped using `mysql.escape()`. This oversight opens the door for SQL injection attacks as untrusted input can be interpreted as executable SQL code.

What to do

An attacker could craft a malicious object that executes arbitrary SQL commands, potentially gaining unauthorized access to sensitive data or even manipulating the database. This could lead to data leaks or major disruptions in your application’s functionality, which can be absolutely devastating! To mitigate this issue, upgrade to a later version of the mysql node module that includes appropriate escaping. Ensure that all input is validated and sanitized before it reaches your database to prevent SQL injection attempts. Review your existing code to replace any unescaped key usage with `mysql.escape()`. 🛡️ You've got this! By taking these steps, you can strengthen your defenses and keep your application secure! 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02443 · 84.1th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2018-05-29T20:00Z
EPSS history
Timeline
  • 29 MAY 20:00Z
    Keys of objects in mysql node module v2.0.0-alpha7 and earlier are not escaped with `mysql.escape()` which could lead to SQL Injection
    cvelistv5