Information leak in Scroll (CVE-2026-87495)
A cross-origin iframe can send extreme scroll coordinates to force ancestor scroll containers in the parent frame to scroll to their limits. The resulting layout shift is leaked back to the iframe via ViewportIntersectionState, allowing it to measure parent container dimensions.
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: A potential cross-origin layout-size oracle exists in Chromium due to a lack of coordinate clipping during scroll-into-view requests across frames. An untrusted cross-origin iframe can submit extreme coordinates to force ancestor scroll containers in the parent frame to scroll to their boundaries. The resulting layout shift is leaked back to the iframe via ViewportIntersectionState feedback, allowing it to measure parent container dimensions.
Affected files:
content/browser/renderer_host/render_frame_host_impl.ccthird_party/blink/renderer/core/frame/remote_frame.cc
Estimated timestamp from git blame: 2017-10-23
Summary
A potential cross-origin layout-size disclosure (XS-Leak) exists in Chromium's frame scrolling code. A malicious or compromised cross-origin iframe can exploit this behavior to measure the scrollable content dimensions of its ancestor scroll containers in the parent document (such as div blocks with overflow: scroll), bypassing Site Isolation and the Same-Origin Policy.
Potential Root Cause Analysis
-
Unchecked Coordinate Passing in the Browser Process The Mojo IPC handler
RenderFrameHostImpl::ScrollRectToVisibleInParentFrameincontent/browser/renderer_host/render_frame_host_impl.ccreceives a client-providedgfx::RectF rect_to_scrolland forwards it directly to the parent's frame proxy viaRenderFrameProxyHost::ScrollRectToVisible. No bounds validation or clipping of this coordinate against the sender frame's viewport is performed. -
Unclipped Transform in Parent Renderer In the parent's renderer process,
RemoteFrame::ScrollRectToVisibleinthird_party/blink/renderer/core/frame/remote_frame.ccconvertsrect_to_scrollto absolute parent coordinates:C++ PhysicalRect absolute_rect = owner_object->LocalToAncestorRect( PhysicalRect::EnclosingRect(rect_to_scroll), owner_object->View());LocalToAncestorRectperforms a pure coordinate transform. It does not clipabsolute_rectto the actual bounds of the iframe's layout box. An attacker can supply arbitrarily large coordinates (e.g.,±1e7) which map to points far outside the iframe element. -
Unrestricted Ancestor Bubbling
scroll_into_view_util::ScrollRectToVisibleprocesses the converted rect. It traverses the ancestor containment chain and scrolls all scrollable containers in the parent document. Each container clamps the scrolling to its minimum or maximum limits (ClampScrollOffset). -
Feedback via ViewportIntersectionState As the parent's containers scroll, the position of the iframe relative to the viewport shifts. During layout updates,
FrameView::UpdateViewportIntersectioninthird_party/blink/renderer/core/frame/frame_view.cccaptures this translation shift inmain_frame_transformand transmits the updatedViewportIntersectionStateback to the child iframe, leaking the exact scroll offsets.
Potential Attack Steps
An attacker in a cross-origin iframe (or with code execution in the iframe's renderer process) could potentially measure cross-origin layout dimensions by following these steps (note: these are suggested steps, as our analysis has been conducted statically without live code execution capability):
- Call
ScrollRectToVisibleInParentFramewith a large negative scroll coordinate (e.g.,rect.y = -1e7) to force ancestor scrollable containers to scroll to their minimum scroll limits. Record the resulting translation matrixT0fromViewportIntersectionState. - Call
ScrollRectToVisibleInParentFramewith a large positive scroll coordinate (e.g.,rect.y = +1e7) to force ancestor containers to their maximum scroll limits. Record the resulting translation matrixT1. - Compute the delta
(T0 - T1).y, which exposes the sum of the maximum scroll offsets (content_size - viewport_size) across the parent containers. By using a binary search over intermediate coordinates, the attacker could isolate individual ancestor container dimensions.
Suggested Fix
To remediate this issue, coordinate conversions in RemoteFrame::ScrollRectToVisible should clip the incoming rect_to_scroll coordinates against the layout boundaries of the subframe's element (or the subframe's viewport size) before applying the coordinate space transformation and bubbling the scroll action upward.
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 browser process does not clip client-provided scroll coordinates to the iframe's viewport before forwarding them to the parent frame, and the parent renderer applies a pure coordinate transform without clipping to the iframe's layout box.
Impact
A malicious cross-origin iframe could measure the scrollable content dimensions of its ancestor scroll containers in the parent document, bypassing Site Isolation and the Same-Origin Policy.
What the attacker needed
Victim visits attacker page; attacker page embeds cross-origin iframe; parent has scrollable containers
The fix
Coordinate conversions in RemoteFrame::ScrollRectToVisible should clip the incoming rect_to_scroll coordinates against the layout boundaries of the subframe's element or the subframe's viewport size before applying the coordinate space transformation and bubbling the scroll action upward.
How it was found
- Call ScrollRectToVisibleInParentFrame with a large negative scroll coordinate to force ancestor scrollable containers to their minimum scroll limits and record the resulting translation matrix T0.
- Call ScrollRectToVisibleInParentFrame with a large positive scroll coordinate to force ancestor containers to their maximum scroll limits and record the resulting translation matrix T1.
- Compute the delta (T0 - T1).y to expose the sum of the maximum scroll offsets across the parent containers, and use binary search over intermediate coordinates to isolate individual ancestor container dimensions.
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.
A website can embed another site in a small window called an iframe. Normally the embedded site cannot read the size of elements on the parent page. This report suggests that by asking the parent to scroll to very large coordinates, the iframe can learn the parent's scrollable size through a side channel.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.