Skip to content

SQL Injection in mysql

Moderate severity GitHub Reviewed Published Sep 1, 2020 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm mysql (npm)

Affected versions

<= 2.0.0-alpha7

Patched versions

2.0.0-alpha8

Description

Versions of mysql prior to 2.0.0-alpha8 are affected by a SQL Injection vulnerability in the mysql.escape() function, which does not properly escape object keys.

Recommendation

Update to version 2.0.0-alpha8 or later.

References

Published by the National Vulnerability Database May 29, 2018
Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 1, 2020
Last updated Feb 1, 2023

Severity

Moderate

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(74th percentile)

Weaknesses

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Learn more on MITRE.

CVE ID

CVE-2015-9244

GHSA ID

GHSA-fvq6-55gv-jx9f

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.