Description
Capacitor is a cross-platform native runtime for web applications. From 6.0.0 until 6.2.2, 7.6.9, 8.3.5, 8.4.3, and 8.5.1, the Android and iOS WebView navigation guard validates a target URL's host and scheme but not its path, allowing a victim who activates an untrusted link to navigate a frame to /_capacitor_http_interceptor_. The native proxy can fetch an attacker-selected URL and return the response as a document at the application's own origin, allowing script in that response to access same-origin storage, cookies, and registered Capacitor plugin capabilities. Applications remain affected when CapacitorHttp is disabled because affected releases serve the proxy path regardless of that setting. This issue is fixed in versions 6.2.2, 7.6.9, 8.3.5, 8.4.3, and 8.5.1.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
ionic-team capacitor
>= 6.0.0, < 6.2.2affected>= 7.0.0, < 7.6.9affected>= 8.0.0, < 8.3.5affected>= 8.3.5, < 8.4.3affected>= 8.5.0, < 8.5.1affected
@capacitor android
>= 8.5.0, < 8.5.1affected>= 8.3.5, < 8.4.3affected>= 8.0.0, < 8.3.5affected>= 7.0.0, < 7.6.9affected>= 6.0.0, < 6.2.2affected
@capacitor ios
>= 8.5.0, < 8.5.1affected>= 8.3.5, < 8.4.3affected>= 8.0.0, < 8.3.5affected>= 7.0.0, < 7.6.9affected>= 6.0.0, < 6.2.2affected
com.capacitorjs core
>= 8.5.0, < 8.5.1affected>= 8.3.5, < 8.4.3affected>= 8.0.0, < 8.3.5affected>= 7.0.0, < 7.6.9affected>= 6.0.0, < 6.2.2affected
swift github.com/ionic-team/capacitor-swift-pm
>= 8.5.0, < 8.5.1affected>= 8.3.5, < 8.4.3affected>= 8.0.0, < 8.3.5affected>= 7.0.0, < 7.6.9affected>= 6.0.0, < 6.2.2affected
References
- https://github.com/ionic-team/capacitor/security/advisories/GHSA-rvm3-566m-v7fv ↗
- https://github.com/ionic-team/capacitor/commit/430356a91e1419fc66862dc09835081aa501677e ↗
- https://github.com/ionic-team/capacitor/commit/80b6c5e81d062e1e158914040f49e044d95b7ccb ↗
- https://github.com/ionic-team/capacitor/commit/85ccc44151fdd5ae5e0d806d875766ef4b84ad5d ↗
- https://github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4 ↗
- https://github.com/ionic-team/capacitor/commit/d5e3170ba0ff155fc542b7e6d16cff5201406540 ↗
- https://github.com/ionic-team/capacitor/commit/ee586ae680887ba99d066616f976db149542d922 ↗
- https://github.com/ionic-team/capacitor/releases/tag/8.5.1 ↗