CVE-2026-47430: Cordova Plugin InAppBrowser IOS: Arbitrary Cordova Callback IDs Vulnerability

CRITICAL
Advisory Identifier: GHSA-q42j-x8rq-pjg6
CWE-20
Published
Advisory Summary

CVE-2026-47430 is a CRITICAL ios: arbitrary cordova callback ids vulnerability (CWE-20: Improper Input Validation) affecting Cordova Plugin InAppBrowser libraries in the npm ecosystem. The issue involves ios: arbitrary cordova callback ids can be dispatched without validation from inappbrowser webviews.. Remediation is available by upgrading affected packages to version 6.0.1.

CVE-2026-47430 at a Glance

CVE Identifier CVE-2026-47430
GHSA Identifier GHSA-q42j-x8rq-pjg6
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Cordova Plugin InAppBrowser
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-47430

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.

cordova-plugin-inappbrowser fixed: 6.0.1
npm install cordova-plugin-inappbrowser@6.0.1
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-plugin-inappbrowser

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-47430, 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 6.0.1), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

## 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.cordova_iab.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.

CVE-2026-47430 Affected Cordova Plugin InAppBrowser Versions

1 component(s)
Fixed Versions:
6.0.1
Product / Package Ecosystem Affected Versions Fixed Version
cordova-plugin-inappbrowser
npm
< 6.0.1
6.0.1

References

Frequently Asked Questions

What is CVE-2026-47430?
CVE-2026-47430 is a security vulnerability in Cordova Plugin InAppBrowser involving iOS: Arbitrary Cordova callback IDs can be dispatched without validation from InAppBrowser WebViews. under CWE-20: Improper Input Validation.
Which Cordova Plugin InAppBrowser versions are affected?
Affected versions include releases prior to 6.0.1 across affected packages: cordova-plugin-inappbrowser.
What version fixes CVE-2026-47430?
Upgrading to 6.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cordova-plugin-inappbrowser affected?
Yes, cordova-plugin-inappbrowser is affected in releases prior to 6.0.1. Upgrade your dependency to 6.0.1 or later.
What CWE is associated with CVE-2026-47430?
CVE-2026-47430 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2026-47430?
Run the dependency tree command: 'npm ls cordova-plugin-inappbrowser'. 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-q42j-x8rq-pjg6",
  "modified" : "2026-06-12T21:01:06Z",
  "published" : "2026-06-08T12:30:29Z",
  "aliases" : [ "CVE-2026-47430" ],
  "summary" : "Cordova Plugin InAppBrowser: iOS: Arbitrary Cordova callback IDs can be dispatched without validation from InAppBrowser WebViews.",
  "details" : "## Summary\n\nThe 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.\n\n\n## Impact\n\nAn 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.cordova_iab.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.\n\nThis issue affects Cordova Plugin InAppBrowser: from 3.1.0 through 6.0.0.\n\nUsers are recommended to upgrade to version 6.0.1, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "cordova-plugin-inappbrowser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-47430"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/cordova-plugin-inappbrowser"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/sb539nss3b0545wnyt1pbh7zgwjvz2qq"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/06/07/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-12T21:01:06Z",
    "nvd_published_at" : "2026-06-08T12:16:32Z"
  }
}