CVE-2019-0219: Privilege Escalation in cordova-plugin-inappbrowser
Summary
CVE-2019-0219: Privilege Escalation in cordova-plugin-inappbrowser. Affects cordova-plugin-inappbrowser versions < 3.1.0. Fixed in 3.1.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The cordova-plugin-inappbrowser is an open-source plugin for Apache Cordova that allows developers to open web pages in a separate InAppBrowser webview. It provides a way to display external web content within a Cordova application. The plugin is commonly used in hybrid mobile applications to embed web content and provide a seamless browsing experience. However, versions prior to 3.1.0 are vulnerable to Privilege Escalation.
Vulnerability Detail
The vulnerability in cordova-plugin-inappbrowser allows a website running in the InAppBrowser webview on Android to execute arbitrary JavaScript in the main application's webview using a specially crafted gap-iab: URI. This means that an attacker can exploit this vulnerability to execute malicious code in the context of the main application, potentially leading to unauthorized access, data leakage, or other malicious activities. This vulnerability affects Cordova Android applications using the package.
How To Fix
Minimum fixed version
3.1.0
This is the first release that contains the fix.
npm install cordova-plugin-inappbrowser@3.1.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the cordova-plugin-inappbrowser to mitigate the risk.
Conclusion
The vulnerability in cordova-plugin-inappbrowser allows for Privilege Escalation, enabling an attacker to execute arbitrary JavaScript in the main application's webview. To mitigate this risk, it is crucial to upgrade to version 3.1.0 or later of the cordova-plugin-inappbrowser. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for cordova-plugin-inappbrowser →
FAQ
cordova-plugin-inappbrowser is an open-source plugin for Apache Cordova that allows developers to open web pages in a separate InAppBrowser webview.
Privilege Escalation is a security vulnerability that allows an attacker to gain elevated privileges or access to resources that should be restricted.
This vulnerability allows a website running in the InAppBrowser webview on Android to execute arbitrary JavaScript in the main application's webview, potentially leading to unauthorized access or malicious activities.
Yes, upgrading to version 3.1.0 or later of the cordova-plugin-inappbrowser fixes this vulnerability.
No, this vulnerability specifically affects Cordova Android applications using the cordova-plugin-inappbrowser package.
Related vulnerabilities
Recent vulnerabilities recorded for cordova-plugin-inappbrowser.