CVE-2019-14939: Mysql MySQL For Node.js Unsafe Options Vulnerability
MODERATECVE-2019-14939 is a MODERATE (CVSS 5.5) mysql for node.js unsafe options vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Mysql libraries in the npm ecosystem. The issue involves mysql for node.js unsafe options. Remediation is available by upgrading affected packages to version 2.18.0.
CVE-2019-14939 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-14939
To remediate this vulnerability, upgrade all affected Mysql dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mysql@2.18.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mysql
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-14939, inspect your project dependencies using npm:
npm ls mysql
Analyze the terminal output to locate any version of Mysql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.0), your application is affected.
Note: The npm ls mysql command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Mysql, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-14939 Affected Mysql Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mysql
|
npm |
≥ 2.17.1
< 2.18.0
All 1 versions
2.17.1
|
2.18.0
|
References
Frequently Asked Questions
What is CVE-2019-14939?
Which Mysql versions are affected?
What version fixes CVE-2019-14939?
Is mysql affected?
What is the CVSS score of CVE-2019-14939?
What CWE is associated with CVE-2019-14939?
How can I check npm dependencies for CVE-2019-14939?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f982-mxwc-3mrx",
"modified" : "2023-09-25T19:28:42Z",
"published" : "2022-05-24T16:53:05Z",
"aliases" : [ "CVE-2019-14939" ],
"summary" : "MySQL for Node.js Unsafe Options",
"details" : "An issue was discovered in the mysql (aka mysqljs) module 2.17.1 for Node.js. `The LOAD DATA LOCAL INFILE` option is open by default.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mysql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.17.1"
}, {
"fixed" : "2.18.0"
} ]
} ],
"versions" : [ "2.17.1" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-14939"
}, {
"type" : "WEB",
"url" : "https://github.com/mysqljs/mysql/issues/2471"
}, {
"type" : "WEB",
"url" : "https://github.com/mysqljs/mysql/commit/337e87ae5fcea3667864197c65dc758517fcde06"
}, {
"type" : "WEB",
"url" : "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934712>"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mysqljs/mysql"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20190812004403/https://github.com/mysqljs/mysql/issues/2257"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-17T18:54:11Z",
"nvd_published_at" : "2019-08-12T01:15:00Z"
}
}