Repository navigation
Update dependency @capacitor/ios to v6.2.2 [SECURITY] - #9
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.1.0→6.2.2Capacitor Android and iOS: remote content can be loaded at the app origin via the internal HTTP proxy path
CVE-2026-103922 / GHSA-rvm3-566m-v7fv
More information
Details
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, aframe 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 applicationexposes through its registered Capacitor plugins.
The proxy handler was additionally served regardless of whether the
CapacitorHttpplugin was enabled, so applications that never enabledCapacitorHttpwere 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:
proxy path.
CapacitorHttpis enabled, and neverfor a document (main frame) request.
Legitimate
CapacitorHttpusage is unaffected.fetchandXMLHttpRequestaresubresource 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
CapacitorHttpis 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)andreturn
truewhenurl.getPath()starts with/_capacitor_http_interceptor_.On iOS, implement
shouldOverrideLoad(_:)and returntruefor the same path.Returning
truecancels the navigation; returnnull/nilfor all other URLsso normal navigation is unchanged.
Independently, sanitize user-controlled link targets before rendering them in the
WebView.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
ionic-team/capacitor (@capacitor/ios)
v6.2.2Compare Source
Bug Fixes
v6.2.1Compare Source
Bug Fixes
v6.2.0Compare Source
Bug Fixes
Features
methodNameviaCAPPluginCall(#7641) (#7684) (bf6ef8e)v6.1.2Compare Source
Bug Fixes
v6.1.1Compare Source
Bug Fixes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.