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

Observable discrepancy in CustomTabs (CVE-2026-78949)

A privacy guard that pauses engagement signals when a text fragment is present is cleared by same-document navigations without resetting the scroll baseline. A malicious Android app using the Custom Tabs Engagement Signals API could then infer whether and roughly where an attacker-chosen text fragment appears on a cross-origin page.

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: An asymmetry in RealtimeEngagementSignalObserver allows same-document navigations to clear the text-fragment privacy guard (mSignalsPaused) without resetting the scroll state baseline. This potentially allows a malicious Android app using the Custom Tabs Engagement Signals API to exploit a scroll-position oracle (XS-Leak) and determine whether and where an attacker-specified text fragment appears on a cross-origin page.

Affected files:

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

Estimated timestamp from git blame: 2026-04-29

Description

In Chrome for Android, the Custom Tabs Engagement Signals API provides scroll percentage updates and other engagement signals to an embedder application. To prevent a cross-origin text-fragment scroll-position leakage (an XS-Leak where an app can detect if a specific :~:text= fragment matches and causes an auto-scroll on a target site), Chrome employs a privacy guard (mSignalsPaused) that pauses signals when a text fragment is present in the URL.

However, a potential vulnerability exists in RealtimeEngagementSignalObserver.java because the didFinishNavigationInPrimaryMainFrame handler unconditionally re-evaluates and clears mSignalsPaused when any primary main frame navigation commits, without checking if the navigation is a same-document navigation:

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

By contrast, the sibling handler navigationEntryCommitted does check and exclude same-document navigations:

Java
@Override
public void navigationEntryCommitted(LoadCommittedDetails details) {
    if (details.isMainFrame() && !details.isSameDocument()) {
        assumeNonNull(mScrollState).resetMaxScrollPercentage();
    }
}

This asymmetry creates a potential security bypass:

  1. Initial Load: When a page is first loaded via Custom Tabs with a :~:text= directive, the privacy guard is correctly engaged (mSignalsPaused = true) because the text fragment is present in the initial URL. The browser processes the text fragment and auto-scrolls the viewport to the target text fragment (if present).
  2. Same-Document Navigation: If the page subsequently performs a same-document navigation (such as calling history.pushState/history.replaceState or updating location.hash — which is common in Single Page Applications or can be forced by the launching application via fragment-only navigations), a primary main frame navigation commits with hasCommitted() == true and isSameDocument() == true.
  3. Guard Cleared: Because the fragment directive #:~:text= is stripped from the URL of same-document navigations, LinkToTextHelper.hasTextFragment() returns false, which sets mSignalsPaused = false and clears the privacy guard.
  4. State Preserved: Crucially, because the navigation is same-document, navigationEntryCommitted does not reset the scroll state baseline (resetMaxScrollPercentage() is not called). The previous auto-scroll position is preserved.
  5. Leaking Scroll Position: When the user performs a single scroll gesture, the observer records the absolute scroll offset (which includes the text-fragment auto-scroll offset) and transmits the scroll percentage to the third-party app, leaking whether the target text was found on the page.

Potential Steps to Reproduce

Note: These are potential steps that have not been verified via a live proof-of-concept run.

  1. Build an Android app that binds to Chrome's CustomTabsService and registers an EngagementSignalsCallback via setEngagementSignalsCallback().
  2. Ensure the device has Chrome's 'Help improve Chrome's features and performance' (UMA) toggle enabled (the default setting).
  3. Launch a Custom Tab to a page containing a text-fragment directive (e.g., https://example.com/page#:~:text=SECRETSTRING), where the target page performs a same-document navigation (such as history.replaceState or history.pushState) after loading, or initiate a same-document navigation to a different fragment (e.g., https://example.com/page#done) from the app.
  4. Wait for the navigation to commit, which silently disables the mSignalsPaused guard.
  5. Perform a single scroll gesture on the page.
  6. Observe that the onGreatestScrollPercentageIncreased callback fires with a non-zero percentage if the text fragment matched and caused an auto-scroll, potentially leaking the presence and approximate vertical location of the secret text.

Suggested Fix

Prevent same-document navigations from clearing the mSignalsPaused guard by adding a !navigationHandle.isSameDocument() check:

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

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

The navigation-finished handler clears the privacy guard for every committed primary main frame navigation, including same-document ones, while the sibling handler that resets the scroll baseline correctly excludes same-document navigations.

Impact

A malicious Android app could learn whether an attacker-chosen text fragment exists on a cross-origin page and its approximate vertical position, though the report notes the steps are potential and have not been verified with a live proof-of-concept.

What the attacker needed

Malicious Android app; Chrome UMA toggle enabled (default); victim opens a crafted Custom Tab link; target page or app performs same-document navigation

The fix

The guard should be changed so that same-document navigations do not clear it, by adding a check that the navigation is not same-document.

How it was found

  1. Build an Android app that binds to Chrome's CustomTabsService and registers an EngagementSignalsCallback.
  2. Ensure the device has Chrome's UMA toggle enabled, which is the default.
  3. Launch a Custom Tab to a page with a text-fragment directive, where the page or the app then performs a same-document navigation.
  4. Wait for the navigation to commit, which silently disables the privacy guard.
  5. Perform a single scroll gesture on the page.
  6. Observe the onGreatestScrollPercentageIncreased callback firing with a non-zero percentage if the text fragment matched.

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.

Some web pages can scroll automatically to a specific piece of text if the link includes a special text-fragment marker. Chrome tries to hide whether that text was found from apps that embed its browser, by pausing scroll reports. Here, a later in-page navigation accidentally turns those reports back on while keeping the old scroll position, so an app could guess whether the secret text exists and roughly where it is.

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.