Skip to content
Info disclosure Advisory Advanced CVE-2026-79146

Information leak in CustomTabs (CVE-2026-79146)

Chrome Custom Tabs pauses scroll-based engagement signals only for text fragments, not for standard element-ID fragments, so a host app can observe the scroll percentage after a page auto-scrolls to a named element. This could let a malicious app infer whether a specific element exists on a cross-origin page loaded with the user's cookies.

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-site information leak (XS-Leak) exists in Chrome Custom Tabs on Android due to how RealtimeEngagementSignalObserver tracks viewport scroll states. While text fragments are paused to prevent information disclosure, standard element-ID fragments are not blocked, allowing an embedder application to observe whether specific element IDs exist on a cross-origin page. This occurs because programmatic auto-scrolling is triggered on load, and any subsequent user scroll leaks the resulting scroll percentage to the host app.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/content/RealtimeEngagementSignalObserver.java
  • chrome/browser/share/android/java/src/org/chromium/chrome/browser/share/link_to_text/LinkToTextHelper.java

Estimated timestamp from git blame: 2023-06-06

Summary

We have identified a potential cross-site information leak (XS-Leak) in Chrome Custom Tabs' RealtimeEngagementSignalObserver where scroll-based engagement signals are not paused during navigation using standard element-ID or named-anchor fragment identifiers (e.g., #target-id). By observing the resulting scroll percentage reported through the Custom Tabs service, a host application can potentially deduce whether specific elements exist on a cross-origin website loaded with the user's session cookies.

Root Cause Analysis

The mitigation to suppress scroll-based engagement signals on pages with initial scroll offsets is implemented in chrome/android/java/src/org/chromium/chrome/browser/customtabs/content/RealtimeEngagementSignalObserver.java via the mSignalsPaused flag:

Java
if (mWebContents != null) {
    mSignalsPaused = LinkToTextHelper.hasTextFragment(mWebContents.getVisibleUrl());
}

And inside didFinishNavigationInPrimaryMainFrame():

Java
@Override
public void didFinishNavigationInPrimaryMainFrame(NavigationHandle navigationHandle) {
    if (navigationHandle.hasCommitted()) {
        mSignalsPaused = LinkToTextHelper.hasTextFragment(navigationHandle.getUrl());
    }
}

LinkToTextHelper.hasTextFragment() (located in chrome/browser/share/android/java/src/org/chromium/chrome/browser/share/link_to_text/LinkToTextHelper.java) only checks for text fragments containing :~:text=:

Java
public static boolean hasTextFragment(GURL url) {
    Uri uri = Uri.parse(url.getSpec());
    String fragment = uri.getEncodedFragment();
    return (fragment != null) && fragment.contains(TEXT_FRAGMENT_PREFIX);
}

However, standard fragment identifiers also trigger programmatic scroll behavior via Blink's ElementFragmentAnchor on cross-document loads to bring the matched element into view. Because mSignalsPaused remains false for standard fragment identifiers, the absolute viewport vertical scroll offset (which includes the programmatic scroll) is updated in mScrollState.onScrollUpdate(). The resulting computed scroll percentage is then reported to the host application's callback when any subsequent user gesture is completed.

Potential Attack Scenario

(Note: These are potential steps; our tooling cannot currently execute live proof-of-concept code to verify)

  1. A malicious Android app registers a callback implementing EngagementSignalsCallback via CustomTabsConnection.setEngagementSignalsCallback().
  2. The app launches a Custom Tab pointing to a target cross-origin site with a standard element fragment corresponding to a private user state (e.g., https://victim.example/account#admin-panel).
  3. If the element exists (e.g., the user is logged in as an administrator), Blink programmatically scrolls the viewport on page load to bring the element into view.
  4. When the user performs a minor scroll gesture, onScrollOffsetOrExtentChanged() in RealtimeEngagementSignalObserver.java is triggered and reads the absolute vertical scroll offset (which includes the programmatic auto-scroll offset).
  5. The computed scroll percentage (rounded to multiples of 5% via ScrollState.onScrollEnded()) is reported to the host app's callback via notifyGreatestScrollPercentageIncreased().
  6. Based on whether a non-zero scroll percentage is received, the app infers the presence of the element, leaking sensitive cross-origin user states.

Suggested Remediation

Modify RealtimeEngagementSignalObserver.java to pause engagement signals for any committed URL that contains any fragment identifier (which can trigger programmatic scrolling on load), rather than restricting the check solely to text fragments. For example, check if url.hasRef() is true, and if so, set mSignalsPaused to true to ensure that no programmatic-scroll data can leak cross-origin.

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 pause check only looks for text fragments (the :~:text= form) and ignores ordinary fragment identifiers, which also cause programmatic scrolling on load.

Impact

A host app could learn whether a named element exists on a cross-origin page, leaking private user state; the report notes the steps are potential and were not executed as a live proof of concept.

What the attacker needed

Malicious Android app installed; victim logged in to target site; victim makes a small scroll gesture

The fix

The check should pause engagement signals for any committed URL that has a fragment identifier, not just text fragments.

How it was found

  1. A malicious Android app registers an engagement signals callback through the Custom Tabs connection.
  2. The app opens a Custom Tab on a cross-origin site with an element fragment tied to private state.
  3. If the element exists, the browser auto-scrolls to it on load.
  4. The user makes a small scroll gesture, which triggers the scroll observer to read the absolute offset.
  5. The rounded scroll percentage is sent to the host app's callback.
  6. The app infers the element's presence from a non-zero percentage.

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 address ends with a hash and a name, the browser jumps down the page to the matching element. Chrome Custom Tabs, which let an app show a web page inside itself, report how far the user has scrolled back to that app. Because the jump counts as scrolling, the app can tell whether the named element was found on someone else's page, which can reveal private details about the user.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.