---
id: CVE-2026-47430
aliases:
  - GHSA-q42j-x8rq-pjg6
title: >-
  Cordova Plugin InAppBrowser: iOS: Arbitrary Cordova callback IDs can be
  dispatched without validation from InAppBrowser WebViews.
summary: >-
  Cordova Plugin InAppBrowser: iOS: Arbitrary Cordova callback IDs can be
  dispatched without validation from InAppBrowser WebViews.
severity: critical
cwe:
  - CWE-20
vendor: cordova-plugin-inappbrowser
product: cordova-plugin-inappbrowser
ecosystem: npm
affected:
  - cordova-plugin-inappbrowser < 6.0.1
patched:
  - cordova-plugin-inappbrowser 6.0.1
published: '2026-06-08'
updated: '2026-06-12'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-q42j-x8rq-pjg6'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47430'
  - url: 'https://lists.apache.org/thread/sb539nss3b0545wnyt1pbh7zgwjvz2qq'
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/07/1'
  - url: 'https://github.com/advisories/GHSA-q42j-x8rq-pjg6'
tags:
  - ghsa
  - npm
epss: 0.00774
epssPercentile: 0.53874
ingestedAt: '2026-07-07T15:41:59.880Z'
---

## Overview

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

## Affected packages

- `cordova-plugin-inappbrowser < 6.0.1`

## Remediation

Upgrade to a patched release:

- `cordova-plugin-inappbrowser 6.0.1`
