Vulnerabilities in pkg:npm/cordova-android

PACKAGE
Advisory Identifier: GHSA-gwpf-62xp-vrg6
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/cordova-android

1 Known Advisory Record(s)

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

CVE Identifier CVE-2016-6799
GHSA Identifier GHSA-gwpf-62xp-vrg6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Cordova android
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

cordova-android fixed: 6.0.0
npm install cordova-android@6.0.0
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 6.0.0 or later.

CVE-2016-6799 Affected Cordova android Versions

1 component(s)
Fixed Versions:
6.0.0
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?
CVE-2016-6799 is a security vulnerability in Cordova android involving Information Exposure in cordova-android under CWE-532: Insertion of Sensitive Information into Log File.
Which Cordova android versions are affected?
Affected versions include releases prior to 6.0.0 across affected packages: cordova-android.
What version fixes CVE-2016-6799?
Upgrading to 6.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cordova-android affected?
Yes, cordova-android is affected in releases prior to 6.0.0. Upgrade your dependency to 6.0.0 or later.
What is the CVSS score of CVE-2016-6799?
CVE-2016-6799 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2016-6799?
CVE-2016-6799 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check npm dependencies for CVE-2016-6799?
Run the dependency tree command: 'npm ls cordova-android'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}