Information leak in Navigation (CVE-2026-87541)
A failed subframe navigation blocked by CSP commits an error page in the initiator's process without sanitising the final redirect URL. A compromised initiator renderer could read the full path and query of a cross-origin redirect target.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: When a renderer-initiated subframe navigation is blocked (e.g., by CSP), an error page commits in the initiator's process because subframe error page isolation is disabled. Before committing, the browser does not sanitize the final redirect URL in the commit parameters. This can potentially allow a compromised initiator renderer to access the full path and query parameters of cross-origin redirect targets.
Affected files:
content/browser/renderer_host/navigation_request.cc
Estimated timestamp from git blame: 2025-06-02
Summary
A potential cross-origin information disclosure vulnerability exists in Google Chrome where the full URL (including path and query parameters) of a cross-origin redirect target can be leaked to an untrusted initiator renderer process during a failed subframe navigation.
Root Cause Analysis
To prevent leaking sensitive data across process boundaries, NavigationRequest::SanitizeRedirectsForCommit() is called before committing navigation parameters. This function is designed to sanitize redirect URLs by stripping their path and query components. However, it deliberately skips sanitizing the last entry of the redirect_infos vector (and never touches common_params->url) under the assumption that the final destination URL will be committed inside the destination's own isolated process:
// content/browser/renderer_host/navigation_request.cc
for (GURL& redirect : commit_params->redirects) {
redirect = redirect.DeprecatedGetOriginAsURL();
}
if (!commit_params->redirect_infos.empty()) {
auto redirect_infos_span = base::span(commit_params->redirect_infos);
for (net::RedirectInfo& redirect :
redirect_infos_span.first(redirect_infos_span.size() - 1)) {
redirect.new_url = redirect.new_url.DeprecatedGetOriginAsURL();
}
}
While this assumption is correct for successful navigations, it is incorrect when the navigation fails and commits an error page in the initiator's process (i.e., when ComputeErrorPageProcess() returns ErrorPageProcess::kCurrentProcess).
For a renderer-initiated subframe navigation blocked by a request-blocking error (such as ERR_BLOCKED_BY_CSP), and when subframe error page isolation is disabled (which is the default on Chrome), ComputeErrorPageProcess() decides to reuse the iframe's pre-navigation process to commit the error page. Consequently, both common_params->url and commit_params->redirect_infos.back().new_url are sent completely unsanitized to the initiator's process via the CommitFailedNavigation IPC.
Potential Attack Scenario
(Note: The following steps are potential/suggested based on static analysis of the source code, as our tooling does not currently have the capability to run code or construct a live proof-of-concept.)
- A compromised renderer under the control of an attacker (e.g.,
attacker.com) embeds an iframe pointing tohttps://victim.com/sensitive-actionand sets aContent-Security-Policy: frame-src https://victim.comthat permits loading the initial victim URL. - The request to
victim.comredirects tohttps://cdn.example/file?token=SECRET(a cross-origin destination containing sensitive query parameters, such as access tokens, OAuth codes, or pre-signed URLs). - The browser receives the redirect, updates
common_params->urland the last entry ofredirect_infos, and then evaluates the parent's CSP. Because the redirect target iscdn.example(which is not allowed byframe-src), the navigation fails withERR_BLOCKED_BY_CSP. - Since subframe error page isolation is disabled,
ComputeErrorPageProcessselectskCurrentProcess(the attacker's process) to render the error page. SanitizeRedirectsForCommit()skips sanitizing the final redirect URL. The browser then transmits the full, unsanitized URL to the attacker's renderer via theCommitFailedNavigationMojo IPC.- The compromised renderer intercepts the Mojo IPC payload and extracts the sensitive token, bypassing cross-origin boundary protections.
Suggested Fix
When committing a failed navigation inside the initiator's process (ErrorPageProcess::kCurrentProcess), we should sanitize all the entries in commit_params->redirect_infos (including the last one) and sanitize common_params->url down to their origins to prevent sensitive cross-origin data from being disclosed to the initiator.
In NavigationRequest::SanitizeRedirectsForCommit:
bool is_failed_in_current_process =
net_error_ != net::OK &&
ComputeErrorPageProcess() == ErrorPageProcess::kCurrentProcess;
if (!commit_params->redirect_infos.empty()) {
auto redirect_infos_span = base::span(commit_params->redirect_infos);
size_t sanitize_count = is_failed_in_current_process
? redirect_infos_span.size()
: redirect_infos_span.size() - 1;
for (net::RedirectInfo& redirect :
redirect_infos_span.first(sanitize_count)) {
redirect.new_url = redirect.new_url.DeprecatedGetOriginAsURL();
}
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the sanitisation function assumes the final redirect URL will always be committed in the destination's isolated process, so it skips sanitising the last redirect entry and the common URL, which is wrong when a failed navigation commits an error page in the initiator's process.
Impact
A compromised initiator renderer could read the full path and query parameters of a cross-origin redirect target, potentially exposing tokens or OAuth codes; the text notes this is a static-analysis finding without a live proof-of-concept.
What the attacker needed
Compromised renderer process; subframe error page isolation disabled; victim URL redirects cross-origin with secrets
The fix
When a failed navigation commits in the initiator's process, sanitise all redirect entries including the last one and sanitise the common URL down to their origins.
How it was found
- A compromised renderer embeds an iframe pointing to a victim URL and sets a CSP that permits the initial victim URL.
- The victim URL redirects to a cross-origin destination containing sensitive query parameters.
- The browser evaluates the parent's CSP and blocks the redirect target, failing the navigation with ERR_BLOCKED_BY_CSP.
- Because subframe error page isolation is disabled, the error page is committed in the attacker's process.
- The browser sends the full, unsanitised final redirect URL to the attacker's renderer via the CommitFailedNavigation IPC.
- The compromised renderer extracts the sensitive token from the IPC payload.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a web page loads another page inside a frame, the browser sometimes has to show an error page if the load is blocked. Normally the browser hides the full address of the blocked page from the page that started the load, to keep secrets in the address (like tokens) private. Here, the browser forgot to hide the last address when the error page is shown in the same process as the page that started the load, so a malicious page could learn that secret address.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.