Cyber Security News

Capacitor Vulnerability Lets Remote Content Run With Full App Origin Trust

A critical vulnerability in Capacitor, identified as CVE-2026-103922, could allow attacker-controlled remote content to execute within vulnerable Android and iOS applications, posing as the application’s own trusted origin.

This flaw, assigned a CVSS score of 9.3, affects WebView navigation handling in Capacitor and can expose same-origin data, cookies, local storage, and native functionality available through registered Capacitor plugins.

Capacitor Vulnerability

The issue, detailed in GitHub Security Advisory GHSA-rvm3-566m-v7fv, arises from incomplete validation in Capacitor’s WebView navigation guard. The affected logic verified a target URL’s scheme and host but failed to validate its path.

This oversight enabled navigation to Capacitor’s internal /_capacitor_http_interceptor_ endpoint, which is hosted at the application’s origin and treated as a legitimate in-app destination.

When an attacker convinces a victim to click on a malicious link within an application’s WebView, this internal proxy endpoint can be exploited to fetch a remote URL chosen by the attacker.

Crucially, the fetched response is returned to the WebView as a document under the affected application’s trusted origin, rather than the attacker’s remote origin. As a result, any JavaScript embedded in that response can inherit full same-origin privileges within the Capacitor application.

This means that malicious code could potentially access localStorage, cookies, and any privileged native capabilities provided through configured Capacitor plugins. The impact depends on the app’s plugin configuration and stored data.

Affected applications that manage authentication tokens, sensitive user data, device features, or backend API interactions face significant risk. The weakness maps to CWE-346, which refers to an origin-validation error, and CWE-441, which indicates an unintended proxy or “confused deputy” condition.

The vulnerability impacts both `@capacitor/android` and `@capacitor/ios`, as well as the Maven `com.capacitorjs:core` package and the Swift Package Manager distribution.

Vulnerable versions include Capacitor releases from 6.0.0 to 6.2.1, 7.0.0 to 7.6.8, and several 8.x releases before the fixed versions. The fixed versions are 6.2.2, 7.6.9, 8.3.5, 8.4.3, and 8.5.1.

Disabling the CapacitorHttp plugin does not protect vulnerable applications. In affected versions, the internal proxy handler is accessible even if the plugin has not been enabled, expanding the exposure to apps that do not intentionally use the Capacitor HTTP proxy functionality.

The maintainers have addressed the issue by blocking frame navigations to the internal proxy path and ensuring that the proxy handler is available only when CapacitorHttp is enabled.

The patched implementation also prevents the proxy endpoint from serving main-document requests while preserving legitimate fetch and XMLHttpRequest behavior, as these operate as subresource requests.

Developers should upgrade to a patched version of Capacitor, rebuild the affected Android and iOS applications, and promptly redistribute the updated versions.

Organizations unable to patch immediately can implement an Android or iOS plugin override to cancel navigation attempts starting with /_capacitor_http_interceptor_. Also sanitize and restrict user-controlled links rendered in WebViews, especially in applications that support chat messages, comments, embedded rich text, or external content.

Cut every SOC alert investigation by 21 min. Power your SOC with instant IOC context for immediate response: Integrate TI Lookup in your SOC

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

OpenSSH sshole Flaw Allows Hackers to Log Into Password-Disabled Linux Accounts Using 257-Character Passwords

A decade-old authentication bypass in OpenSSH on musl-based Linux lets attackers log into accounts that…

37 seconds ago

New GhostMap Android Vulnerability Can Crash Phones Permanently Without Opening an App or Granting Permissions

Bitdefender researchers have revealed a vulnerability called GhostMap that affects Android devices. This vulnerability can…

10 minutes ago

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

34 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

1 hour ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago

OpenAI’s New GPT-6 Cyber Finds 81 High-Severity Firefox Vulnerabilities and 948 Linux Kernel Exploits

OpenAI has introduced GPT-6 Cyber, a security-focused model built to find and validate exploitable vulnerabilities…

1 hour ago