Skip to content

SQL Injection in query-mysql

High severity GitHub Reviewed Published Sep 10, 2018 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm query-mysql (npm)

Affected versions

<= 0.0.2

Patched versions

None

Description

All versions of query-mysql are vulnerable to SQL injection due to lack of user input sanitization allows to run arbitrary SQL queries when fetching data from database.

Recommendation

No fix is currently available for this vulnerability. It is our recommendation to not install or use this module if user input is passed into this module.

References

Published to the GitHub Advisory Database Sep 10, 2018
Reviewed Jun 16, 2020
Last updated Jan 9, 2023

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2018-3754

GHSA ID

GHSA-9mr8-6prp-gwjv

Source code

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