CVE-2026-47430: Cordova Plugin InAppBrowser: iOS: Arbitrary Cordova callback IDs can be dispatched without validation from InAppBrowser WebViews
Summary
The iOS implementation of cordova-plugin-inappbrowser passes the id field from a WKScriptMessage body to commandDelegate sendPluginResult:callbackId: with no format validation (CDVWKInAppBrowser.m:560–574). Any web content loaded inside the InAppBrowser can fire any pending Cordova callback in the host app by posting a message whose id field is a guessable or enumerated callback identifier. An attack abusing this weakness must be tailored to the specific plugins and callback IDs the host app uses. Though an attacker with knowledge of common Cordova plugin configurations could craft reusable payloads targeting widely-adopted plugins.
Impact
An unauthenticated remote attacker who controls content displayed in the InAppBrowser — via a URL the app opens (OAuth redirect, marketing link, deep-link target) or a network interception — can call window.webkit.messageHandlers.cordovaiab.postMessage({id: '<victim-callback-id>', d: '...'}) to fire callbacks belonging to any other installed Cordova plugin (Camera, Contacts, File, Geolocation). Cordova callback IDs follow the predictable format <PluginName><sequential-integer>, making enumeration feasible. Successful exploitation allows the attacker to spoof plugin results across trust boundaries — for example, injecting a forged camera approval, a fabricated contacts list, or a crafted file-read response.
This issue affects Cordova Plugin InAppBrowser: from 3.1.0 through 6.0.0.
Users are recommended to upgrade to version 6.0.1, which fixes the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
cordova-plugin-inappbrowserto a version that resolves this vulnerability.Fixed in 6.0.1 - Compensating control
Reduce exposure by preventing untrusted web content from loading in the iOS InAppBrowser (e.g., avoid opening URLs from untrusted sources and block network interception paths that could allow an attacker to control the InAppBrowser content).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-47430?
CVE-2026-47430 has a severity rating of critical with a CVSS score of 9.5.
How do I fix CVE-2026-47430?
To fix CVE-2026-47430, update to the latest version of the cordova-plugin-inappbrowser that addresses the vulnerability.
What systems are affected by CVE-2026-47430?
CVE-2026-47430 affects iOS applications that utilize the cordova-plugin-inappbrowser for WebView content.
What kind of threat does CVE-2026-47430 pose?
CVE-2026-47430 poses a significant threat as it allows arbitrary Cordova callback IDs to be dispatched without validation, leading to potential malicious exploitation.
Is user input validation a concern in CVE-2026-47430?
Yes, CVE-2026-47430 is associated with input validation issues, specifically regarding the handling of Cordova callback IDs in InAppBrowser WebViews.