Vulnerabilities in pkg:npm/cordova-android
PACKAGECVE-2016-6799 is a HIGH (CVSS 7.5) information exposure vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Cordova android libraries in the npm ecosystem. The issue involves information exposure in cordova-android. Remediation is available by upgrading affected packages to version 6.0.0.
pkg:npm/cordova-android
Vulnerability advisories affecting package pkg:npm/cordova-android. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gwpf-62xp-vrg6 | CVE-2016-6799 | HIGH | Information Exposure in cordova-android |
CVE-2016-6799 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2016-6799
To remediate this vulnerability, upgrade all affected Cordova android 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 cordova-android@6.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls cordova-android
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2016-6799, inspect your project dependencies using npm:
npm ls cordova-android
Analyze the terminal output to locate any version of Cordova android in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.0), your application is affected.
Note: The npm ls cordova-android 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Cordova android, 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-2016-6799 Affected Cordova android Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cordova-android
|
npm |
< 6.0.0
|
6.0.0
|
References
Frequently Asked Questions
What is CVE-2016-6799?
Which Cordova android versions are affected?
What version fixes CVE-2016-6799?
Is cordova-android affected?
What is the CVSS score of CVE-2016-6799?
What CWE is associated with CVE-2016-6799?
How can I check npm dependencies for CVE-2016-6799?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gwpf-62xp-vrg6",
"modified" : "2021-09-28T16:53:04Z",
"published" : "2020-09-11T21:14:49Z",
"aliases" : [ "CVE-2016-6799" ],
"summary" : "Information Exposure in cordova-android",
"details" : "Versions of `cordova-android` prior to 6.0.0 are vulnerable to Information Exposure through log files. The application calls methods of the Log class. Messages passed to these methods (Log.v(), Log.d(), Log.i(), Log.w(), and Log.e()) are stored in a series of circular buffers on the device. By default, a maximum of four 16 KB rotated logs are kept in addition to the current log. The logged data can be read using Logcat on the device. When using platforms prior to Android 4.1 (Jelly Bean), the log data is not sandboxed per application; any application installed on the device has the capability to read data logged by other applications.\n\n\n## Recommendation\n\nUpgrade to version 6.0.0 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "cordova-android"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6799"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/cordova-android/commit/4a0a7bc424fae14c9689f4a8a2dc250ae3a47f82"
}, {
"type" : "WEB",
"url" : "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6799"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cordova-android"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/1f3e7b0319d64b455f73616f572acee36fbca31f87f5b2e509c45b69@%3Cdev.cordova.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-CORDOVAANDROID-174935"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/964"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/98365"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:42:13Z",
"nvd_published_at" : null
}
}