@capacitor/android is vulnerable to Cross-Site Scripting (XSS)
93
CVE Score
Critical
Cross-Site Scripting (XSS)
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.
Upgrade the @capacitor/android library to the patch version.
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.
5.7.1 - 6.2.1
Fixed in 6.2.27.0.0 - 7.6.8
Fixed in 7.6.98.0.0 - 8.4.2
Fixed in 8.4.38.5.0 - 8.5.0
Fixed in 8.5.1@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.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.