@capacitor/android is vulnerable to Cross-Site Scripting (XSS)
93
Critical Risk
Capacitor's WebView navigation guard uses only a target URL's host and scheme, so a navigation to the internal HTTP proxy path is allowed as ordinary in-app navigation. Loading that path as a document makes the native layer fetch an arbitrary, caller specified remote URL and return the response body to the WebView at the app's own origin, regardless of whether CapacitorHttp is enabled. Script in that response then runs with full same-origin trust, including access to localStorage, cookies, and every native capability the app exposes through its registered plugins. The fix blocks navigation to the proxy path before plugins can override it, refuses the proxy for document and subframe requests, restricts it to enabled CapacitorHttp configurations, and adds a sandboxing Content-Security-Policy.
You are affected if you are using a version that falls within the vulnerable range and your app loads user controlled or unsanitized links inside its WebView.
@capacitor/android is vulnerable to Cross-Site Scripting (XSS) in versions 5.7.1 - 6.2.1, 7.0.0 - 7.6.8, 8.0.0 - 8.4.2 and 8.5.0 - 8.5.0.
Upgrade the @capacitor/android library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.