Crítica

Capacitor Android and iOS: remote content can be loaded at the app origin via the internal HTTP proxy path

  • Publicada: 05.10.2026
  • Actualizado: 11.10.2026 13:20

Impact

Capacitor's WebView navigation guard validated only the host and scheme of a target URL, not its path. Because the internal HTTP proxy path (/_capacitor_http_interceptor_) is served at the application's own origin, a frame navigation to it was always treated as in-app navigation and allowed.

Loading that path as a document caused the native layer to fetch an arbitrary, caller-specified URL and return the response body to the WebView at the app's own origin. Script in that response then ran with full same-origin trust: access to localStorage, cookies, and every native capability the application exposes through its registered Capacitor plugins.

The proxy handler was additionally served regardless of whether the CapacitorHttp plugin was enabled, so applications that never enabled CapacitorHttp were also affected.

Exploitation requires a victim to activate a link inside the application's WebView. Any Capacitor application that renders user-controlled or unsanitized links (chat messages, comments, rich-text content) is a viable delivery surface.

Both Android and iOS are affected.

Patches

Two changes on each platform:

  1. The navigation guard now blocks frame navigations whose path is the internal proxy path.
  2. The proxy handler is served only when CapacitorHttp is enabled, and never for a document (main frame) request.

Legitimate CapacitorHttp usage is unaffected. fetch and XMLHttpRequest are subresource requests and do not pass through the navigation guard.

Upgrade to a patched version, then rebuild and redistribute your application.

Workarounds

If you cannot upgrade immediately, note first that disabling CapacitorHttp is not sufficient on affected versions, because the proxy path is served regardless of that setting.

Registered plugins are consulted before the navigation guard runs, so a small plugin can block the path. On Android, override shouldOverrideLoad(Uri url) and return true when url.getPath() starts with /_capacitor_http_interceptor_. On iOS, implement shouldOverrideLoad(_:) and return true for the same path. Returning true cancels the navigation; return null/nil for all other URLs so normal navigation is unchanged.

Independently, sanitize user-controlled link targets before rendering them in the WebView.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Java / Kotlin (Maven) com.capacitorjs:core >= 6.0.0, < 6.2.2, >= 7.0.0, < 7.6.9, >= 8.5.0, < 8.5.1, >= 8.3.5, < 8.4.3, >= 8.0.0, <= 8.3.4 6.2.2, 7.6.9, 8.5.1, 8.4.3
Paquete de npm @capacitor/android >= 6.0.0, < 6.2.2, >= 7.0.0, < 7.6.9, >= 8.5.0, < 8.5.1, >= 8.3.5, < 8.4.3, >= 8.0.0, <= 8.3.4 6.2.2, 7.6.9, 8.5.1, 8.4.3
Paquete de npm @capacitor/ios >= 6.0.0, < 6.2.2, >= 7.0.0, < 7.6.9, >= 8.5.0, < 8.5.1, >= 8.3.5, < 8.4.3, >= 8.0.0, <= 8.3.4 6.2.2, 7.6.9, 8.5.1, 8.4.3

Referencias

Puntuación CVSS 9.3/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Debilidad (CWE)
CWE-346, CWE-441
Plataforma
Java / Kotlin (Maven), npm
Paquete
com.capacitorjs:core, @capacitor/android, @capacitor/ios
Publicada
05.10.2026
Actualizado
11.10.2026 13:20

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-rvm3-566m-v7fv - CC BY 4.0

Historial de vulnerabilidades: com.capacitorjs:core

Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Esta es la única vulnerabilidad conocida de este paquete.

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.