CVE-2019-0219: Cordova plugin inappbrowser Privilege Escalation Vulnerability
CRITICALCVE-2019-0219 is a CRITICAL (CVSS 9.8) privilege escalation vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Cordova plugin inappbrowser libraries in the npm ecosystem. The issue involves privilege escalation in cordova-plugin-inappbrowser. Remediation is available by upgrading affected packages to version 3.1.0.
CVE-2019-0219 at a Glance
Security Impact
CVSS: 9.8
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:H/A:H).
How to Fix CVE-2019-0219
To remediate this vulnerability, upgrade all affected Cordova plugin inappbrowser 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-plugin-inappbrowser@3.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls cordova-plugin-inappbrowser
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-0219, inspect your project dependencies using npm:
npm ls cordova-plugin-inappbrowser
Analyze the terminal output to locate any version of Cordova plugin inappbrowser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.
Note: The npm ls cordova-plugin-inappbrowser 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Cordova plugin inappbrowser, 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-0219 Affected Cordova plugin inappbrowser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cordova-plugin-inappbrowser
|
npm |
< 3.1.0
|
3.1.0
|
References
Frequently Asked Questions
What is CVE-2019-0219?
Which Cordova plugin inappbrowser versions are affected?
What version fixes CVE-2019-0219?
Is cordova-plugin-inappbrowser affected?
What is the CVSS score of CVE-2019-0219?
What CWE is associated with CVE-2019-0219?
How can I check npm dependencies for CVE-2019-0219?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c6pw-q7f2-97hv",
"modified" : "2026-06-18T19:01:55Z",
"published" : "2020-09-04T17:57:43Z",
"aliases" : [ "CVE-2019-0219" ],
"summary" : "Privilege Escalation in cordova-plugin-inappbrowser",
"details" : "Versions of `cordova-plugin-inappbrowser` prior to 3.1.0 are vulnerable to Privilege Escalation. A website running in the InAppBrowser webview on Android could execute arbitrary JavaScript in the main application's webview using a specially crafted gap-iab: URI. This affects Cordova Android applications using the package.\n\n\n## Recommendation\n\nUpgrade to version 3.1.0 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "cordova-plugin-inappbrowser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0219"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cordova-plugin-inappbrowser"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/197482d5ab80c0bff4a5ec16e1b0466df38389d9a4b5331d777f14fc%40%3Cdev.cordova.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/4vtg0trdrh5203dktt4f3vkd5z2d5ndj"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1467"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com//security-alerts/cpujul2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2022.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2019/11/28/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:00:21Z",
"nvd_published_at" : "2020-01-14T15:15:00Z"
}
}