Insufficient policy enforcement in ViewTransitions (CVE-2026-8537)
The same-origin check guarding Chrome's ViewTransition snapshot during prerender activation compared the initially requested URL rather than the page's actual committed origin. A same-site cross-origin page reached via a redirect could therefore receive pixel snapshots and DOM layout metadata from a victim page.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A potential vulnerability in Chrome's ViewTransition mechanism may allow a same-site cross-origin renderer to receive pixel snapshots and DOM metadata from a victim page. This occurs because the same-origin security check during prerender activation relies on the initial requested URL rather than the actual committed origin of the redirected prerendered page. This could result in a cross-origin information leak if an attacker controls the redirection destination.
Affected files:
content/browser/renderer_host/view_transition_commit_deferring_condition.cccontent/browser/renderer_host/navigation_request.cccontent/browser/preloading/prerender/prerender_host.cc
Estimated timestamp from git blame: 2024-05-13
Summary
A potential vulnerability exists in the ViewTransition implementation where the same-origin security gate can be bypassed during prerender activation. This allows a same-site cross-origin page (e.g., sub2.example.com) to obtain pixel snapshots and DOM layout metadata from a victim page (e.g., sub1.example.com).
The core issue is that the check in ViewTransitionCommitDeferringCondition relies on NavigationRequest::GetTentativeOriginAtRequestTime(), which is derived from the navigation's initial requested URL. If a prerendered page redirects to a same-site cross-origin destination (allowed via the Supports-Loading-Mode: credentialed-prerender header), the actual committed origin of the prerendered page diverges from the initial URL used for the same-origin gate.
Vulnerability Details
When a navigation involves a ViewTransition, the browser captures a snapshot of the current page to facilitate smooth animations. This snapshot includes GPU-side pixel references and sensitive DOM metadata such as bounding rects, CSS properties, and tag names. To prevent cross-origin information leaks, this state must only be delivered to a destination that is same-origin with the source.
During prerender activation:
ViewTransitionCommitDeferringCondition::MaybeCreateperforms a same-origin check by comparing theold_rfh->GetLastCommittedOrigin()againstnavigation_request->GetTentativeOriginAtRequestTime()whenis_running_potential_prerender_activation_checks()is true.GetTentativeOriginAtRequestTime()returns an origin based on the activation navigation's requested URL (thecommon_params_->url).- In a scenario where a prerender for
sub1.example.com/redirectwas initiated, thePrerenderHostmatches based on this initial URL even if the navigation redirected to and committed atsub2.example.com(using thecredentialed-prerenderopt-in). - The ViewTransition gate compares the source origin (
sub1.example.com) against the tentative origin of the requested URL (sub1.example.com) and passes, allowing the snapshot to be captured. - After the gate passes,
NavigationRequest::OnPrerenderingActivationChecksCompleteproceeds with activation. - Later in the activation process (within
NavigationRequest::CommitPageActivation),common_params_->urlis updated to the prerendered page's actual committed URL (rfh->GetLastCommittedURL()), but this occurs after the gate has already permitted the transition. - The
ViewTransitionStateis then transferred to the stored page and delivered to thesub2.example.comrenderer via theActivatePrerenderedPageMojo IPC without re-evaluating the origin.
Potential Attack Scenario
Note: These are suggested steps for a potential exploit path.
- Setup: An attacker controls
sub2.example.com; the victim controlssub1.example.com(both share the same eTLD+1). - Victim Configuration: The victim page at
sub1.example.comuses@view-transition { navigation: auto; }and speculation rules to prerender same-origin links. - Redirect: The victim site contains a URL
sub1.example.com/redirectthat HTTP-redirects tosub2.example.com/attacker-page. - Attacker Configuration:
sub2.example.com/attacker-pageresponds with the headerSupports-Loading-Mode: credentialed-prerenderto permit the same-site cross-origin prerender. - Trigger: A user on the victim site triggers a prerender of
sub1.example.com/redirect. The prerender redirects and commits at the attacker's origin (sub2.example.com). - Activation: The user clicks the link to
sub1.example.com/redirect. The browser captures a snapshot of the victim's page. Because the ViewTransition gate validates against the requested URL (sub1.example.com/redirect) rather than the actual committed origin (sub2.example.com), the check incorrectly passes. - Exfiltration: The attacker's renderer receives the snapshot and DOM metadata, which can be accessed via CSS pseudo-elements (
::view-transition-old()) and JavaScript (getComputedStyle()).
Suggested Fix
During prerender activation, ViewTransitionCommitDeferringCondition::MaybeCreate should not rely solely on the initial tentative origin. Since the prerendered page has already committed in the background, the deferring condition should verify the same-origin requirement against the actual committed origin of the target RenderFrameHost associated with the matched PrerenderHost. Additionally or alternatively, NavigationRequest::CommitPageActivation should re-verify the origin after updating common_params_->url and clear the ViewTransitionState if it violates the same-origin policy.
Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. Please feel free to reach out to me if you have concerns or feedback.
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
The ViewTransition deferring condition validated the same-origin requirement against the navigation's tentative origin from the requested URL, which diverges from the committed origin after a same-site cross-origin redirect during prerender activation.
Impact
A same-site cross-origin attacker could obtain pixel snapshots and DOM layout metadata of a victim page, a cross-origin information leak; the text presents this as a potential issue with suggested steps rather than a demonstrated exploit.
What the attacker needed
Attacker controls a same-site subdomain; victim site uses view transitions and prerender; victim URL redirects to attacker page; attacker page sends credentialed-prerender header
The fix
The check should compare against the actual committed origin of the matched prerendered frame, or re-verify the origin after the URL is updated and clear the transition state if it fails.
How it was found
- Victim page uses view transitions and speculation rules to prerender same-origin links.
- A victim URL redirects to an attacker-controlled same-site subdomain.
- The attacker page opts in to credentialed prerender with a response header.
- A prerender of the victim redirect URL commits at the attacker origin.
- The user clicks the link, the snapshot is captured and the origin gate passes.
- The attacker renderer receives the snapshot and DOM metadata.
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 you navigate between pages, Chrome can take a picture of the old page and pass some layout details to the new one so the change animates smoothly. That handover is only meant to happen between pages on the same site origin, but here the check looked at the address first asked for instead of where the page actually ended up after a redirect. A page on a different subdomain could then receive details about the victim's page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.