Skip to content
Info disclosure Advisory Intermediate CVE-2026-14126

Incorrect security UI in UI (CVE-2026-14126)

The Android Document Picture-in-Picture header truncates the displayed origin from the right, so a long attacker-controlled subdomain can hide the real registrable domain and leave a trusted-looking prefix visible. An attacker could therefore make a malicious site appear to be a trusted one in the browser-drawn header.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 days

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: The browser-drawn header for Document Picture-in-Picture on Android is vulnerable to origin spoofing because it does not ensure the visibility of the registrable domain. An attacker can craft a long subdomain and specify a narrow window width to hide their actual domain while leaving a trusted prefix visible. This behavior deviates from the Desktop implementation, which correctly elides the start of the origin.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/media/document_picture_in_picture_header/DocumentPictureInPictureHeaderMediator.java
  • chrome/android/java/src/org/chromium/chrome/browser/media/document_picture_in_picture_header/DocumentPictureInPictureHeaderViewBinder.java
  • chrome/android/java/res/layout/document_picture_in_picture_header_layout.xml

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential origin spoofing vulnerability exists in the Android implementation of Document Picture-in-Picture (PiP). The browser-managed header, which is responsible for origin attribution, uses improper URL formatting and truncation logic. By using a long subdomain (e.g., https://accounts.google.com.malicious-site.com) and controlling the PiP window width, an attacker can potentially hide the registrable domain, displaying only a trusted prefix in the header.

Technical Details

The vulnerability stems from several factors in the Android UI implementation for Document PiP:

  1. Improper Host Extraction: In DocumentPictureInPictureHeaderMediator.java, the method getUrlString(GURL url) (line 282) returns the raw host using url.getHost(). It fails to use UrlFormatter.formatUrlForSecurityDisplay(), which is used in other Chrome surfaces to safely format URLs and protect against homograph attacks.
  2. Insecure Truncation (Ellipsizing): The header's URL bar is a standard Android TextView defined in document_picture_in_picture_header_layout.xml (line 31). It is configured with android:singleLine="true" and android:ellipsize="end" (line 44). This causes the Android system to truncate characters from the right side when the text exceeds the available width.
  3. Attacker-Controlled Viewport: An attacker can control the width of the PiP window via the documentPictureInPicture.requestWindow({width}) API. By choosing a specific width (e.g., 220dp), the attacker can ensure that only a trusted portion of their long host string is displayed in the space available between the browser's security icon and the 'back to tab' button.

This behavior lacks parity with the Desktop implementation (chrome/browser/ui/views/frame/picture_in_picture_browser_frame_view.cc, line 585), which explicitly uses gfx::ELIDE_HEAD for HTTPS hosts to ensure the registrable domain (the end of the string) is always visible.

Potential Reproduction Steps

Note: These steps are based on code analysis and have not been verified with a functional proof-of-concept.

  1. Enable the Document Picture-in-Picture feature on an Android 14+ device (e.g., via chrome://flags/#enable-android-document-picture-in-picture).

  2. Navigate to a site with a long subdomain prefix designed to spoof a trusted origin: https://accounts.google.com.secure.login.attacker.com.

  3. Trigger a Document PiP window with a narrow width:

    JavaScript
    const w = await documentPictureInPicture.requestWindow({width: 220, height: 300});
    
  4. Observe the browser-drawn header. Due to ellipsize="end", the header may show 'accounts.google.com...' while the actual domain 'attacker.com' is hidden by truncation.

Suggested Fix

  1. Modify DocumentPictureInPictureHeaderMediator.java to use UrlFormatter.formatUrlForSecurityDisplay() when retrieving the host string for display.
  2. Update document_picture_in_picture_header_layout.xml to use android:ellipsize="start" (parity with ELIDE_HEAD) for the URL bar TextView. This ensures that the most critical part of the origin—the registrable domain—remains visible even when the host is truncated.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 Android header uses the raw host and right-side ellipsizing instead of the security URL formatter and start-side ellipsizing used on desktop, so the registrable domain can be truncated away.

Impact

An attacker could spoof a trusted origin in the browser-drawn PiP header, potentially misleading users, though the report notes the steps are based on code analysis and have not been verified with a functional proof-of-concept.

What the attacker needed

Android 14+ device; Document PiP feature enabled; victim visits attacker-controlled site; attacker controls PiP window width

The fix

The header should format the URL with the security display formatter and ellipsize from the start so the registrable domain stays visible.

How it was found

  1. Enable the Document Picture-in-Picture feature on an Android 14+ device.
  2. Navigate to a site with a long subdomain prefix designed to spoof a trusted origin.
  3. Trigger a Document PiP window with a narrow width.
  4. Observe the browser-drawn header showing a trusted prefix while the real domain is hidden by truncation.

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 website opens a small floating window, the browser shows a header with the site's address so you know who you are dealing with. Here the address is cut off at the end instead of the beginning, so a long fake prefix can push the real domain out of view. That means the header can make a bad site look like a good one.

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.