Skip to content
UI spoofing Advisory Intermediate CVE-2026-121244

UI misrepresentation in FileAPI (CVE-2026-121244)

Chrome's File System Access API file picker dialog can be displayed over a cross-origin page without indicating its true origin, by using a pop-up window that is resized and positioned beneath the dialog while the opener navigates to a trusted site. An attacker could mislead a user into selecting a file, which is then accessible to the attacker's page.

Luan Herrera Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 9 months

VULNERABILITY DETAILS

While researching variants to issue 337356054, it was discovered that Chrome's File System Access API (window.showOpenFilePicker()) can be displayed over a cross-origin page without any indication of who triggered it by utilizing a combination of two windows, potentially misleading users about the origin of the dialog.

The fix introduced in https://chromium-review.googlesource.com/c/chromium/src/+/6966639 made FileSystemChooser a WebContentsObserver to detect when the tab becomes invisible and close the dialog. However, a variation exists, given that the current mitigations do not account for cross-window manipulation scenarios.

The visibility check only monitors the WebContents where the dialog was triggered, so a file picker can be opened in a pop-up window, and that pop-up remains "visible" (not HIDDEN) even while the attacker is able to resize it to a small size and position it directly beneath the file picker dialog.

The pop-up is then completely obscured by the dialog itself, while the attacker navigates the opener window to a trusted site. The user only sees the file picker dialog and the trusted domain behind it, with no indication that the dialog originated from a different (now hidden) popup window.

Here's a breakdown of what is currently happening:

  1. The user visits the attacker-controlled page, which opens a pop-up window (popup.html).
  2. The user clicks inside the pop-up, triggering window.showOpenFilePicker().
  3. A setTimeout(250ms) callback executes in parallel and resizes the pop-up window to a very small size (100×100 pixels). Then it moves the pop-up window to the center of the screen, directly beneath where the file picker dialog will appear, and navigates the opener window to a trusted domain (e.g., www.google.com).
  4. The file picker dialog appears on screen, completely covering the resized pop-up window.
  5. The pop-up window is now visually hidden behind the file picker dialog. The user only sees the file picker dialog and the Google page behind it, creating the impression that the dialog originated from the trusted site.
  6. If the user selects a file, the attacker-controlled page (popup.html) receives the file handle.

One possible mitigation is to perform an additional check before displaying the file picker dialog to determine whether its display area would substantially occlude the page that triggered showOpenFilePicker(). For instance, if the dialog covers more than 50% of the triggering page, it should not be shown and should be dismissed.

A video demonstrating the issue has also been attached (repro.mp4).

BISECT

By doing an initial bisect, it was identified that the affected ranges are between 801491 and 801510 (https://chromium.googlesource.com/chromium/src/+log/106491f7f457714eda47d323dd777c02400ab3ff..e6e289cbcf3f40bb1b7187c4d0529c7926dde374).

The commit responsible for that was: https://chromium.googlesource.com/chromium/src/+/4b039a0ef518c0722804c42d00ba33bc8b1f9585.

Looking into it, this commit enabled the Native File System API by default. By running the bisect again with the appropriate flag set, I was able to narrow it down to these changes: https://chromium.googlesource.com/chromium/src/+log/6825df46d68e42d95d1258537869c37f528dc09c..68c37bdb2814174fe6609114177bdb33916b1b16.

After investigating, it became clear that the commit that introduced the issue is https://chromium.googlesource.com/chromium/src/+/96f6c93577568e7fc08dfb773da321720457951a.

VERSION

Chrome Version: 144.0.7559.97 (Stable)
Chrome Version: 145.0.7632.18 (Beta)
Chrome Version: 146.0.7647.4 (Dev)
Chrome Version: 146.0.7653.0 (Canary)
Operating System: Windows 11 24H2

REPRODUCTION CASE

  1. Download index.html and popup.html and place them in the same folder.
  2. Serve the files using a web server on port 8080.
  3. Navigate to http://localhost:8080/index.html and click anywhere on the page.
  4. A pop-up window will open. Click on Click here to navigate to Google! in the pop-up.
  5. The file picker dialog will appear while https://www.google.com is displayed in the background.
  6. If the user selects a file, it will be accessible to the attacker's pop-up page, not in www.google.com.

CREDIT INFORMATION

Reporter credit: Luan Herrera (@lbherrera_)

The original report as published on the Chromium issue tracker, by Luan Herrera (@lbherrera_). Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Chrome's File System Access API exposes window.showOpenFilePicker(), which opens a native file picker dialog and, when the user selects a file, hands the resulting file handle to the page that called it. Because that dialog is a trusted browser surface, users reasonably assume it belongs to the site they can see behind it. This report, filed through the Chrome VRP, shows that assumption can be broken: the dialog can be displayed over a cross-origin page with no indication of who triggered it, by combining two windows.

The issue was tracked as a UI misrepresentation weakness in the FileAPI component, rated medium severity, and disclosed on 3 November 2026. The reporter is Luan Herrera (@lbherrera_).

Setup

The researcher was working from a prior issue, 337356054, and researching variants of it. The affected builds listed in the report are:

Channel Version
Stable 144.0.7559.97
Beta 145.0.7632.18
Dev 146.0.7647.4
Canary 146.0.7653.0

Operating system: Windows 11 24H2.

The reproduction needs two files, index.html and popup.html, placed in the same folder and served by a web server on port 8080. No accounts or special configuration are mentioned.

Finding it

The starting point was the earlier fix in https://chromium-review.googlesource.com/c/chromium/src/+/6966639, which made FileSystemChooser a WebContentsObserver so it could detect when the tab becomes invisible and close the dialog. That defence assumes the dialog and the page that triggered it live in the same visibility context. The researcher noticed that cross-window manipulation is not accounted for: the visibility check only monitors the WebContents where the dialog was triggered.

That leaves a gap. A file picker can be opened in a pop-up window, and that pop-up stays "visible" (not HIDDEN) even while the attacker resizes it to a small size and positions it directly beneath the file picker dialog. The pop-up is then completely obscured by the dialog itself, while the attacker navigates the opener window to a trusted site. The user sees only the file picker and the trusted domain behind it, with nothing indicating that the dialog came from a different, now hidden pop-up window.

Exploitation

Step 1: open the pop-up

The user visits the attacker-controlled page, which opens a pop-up window (popup.html).

Step 2: trigger the picker from the pop-up

The user clicks inside the pop-up, which calls window.showOpenFilePicker(). The dialog is therefore owned by the pop-up's WebContents, not by the opener.

Step 3: resize, reposition and navigate the opener

A setTimeout(250ms) callback runs in parallel. It resizes the pop-up to 100×100 pixels, moves it to the centre of the screen directly beneath where the file picker dialog will appear, and navigates the opener window to a trusted domain (the report uses www.google.com as the example).

Step 4: the dialog covers the pop-up

The file picker appears on screen and completely covers the resized pop-up window.

Step 5: the misleading composition

The pop-up is now visually hidden behind the dialog. The user sees the file picker and the Google page behind it, which creates the impression that the dialog originated from the trusted site.

Step 6: the file goes to the attacker

If the user selects a file, the attacker-controlled page (popup.html) receives the file handle, not the trusted site shown in the background.

Reproduction case

  1. Download index.html and popup.html and place them in the same folder.
  2. Serve the files using a web server on port 8080.
  3. Navigate to http://localhost:8080/index.html and click anywhere on the page.
  4. A pop-up window opens. Click on Click here to navigate to Google! in the pop-up.
  5. The file picker dialog appears while https://www.google.com is displayed in the background.
  6. If the user selects a file, it is accessible to the attacker's pop-up page, not to www.google.com.

A video demonstrating the issue was attached to the report as repro.mp4.

Root cause

The visibility check introduced by the earlier fix only monitors the WebContents where the dialog was triggered. A pop-up that has been shrunk and tucked behind the dialog is still not HIDDEN, so the mitigation never fires. The current mitigations do not account for cross-window manipulation, which allows the dialog to occlude the pop-up while a trusted page sits in the opener window.

On the bisect side, the affected ranges were identified as between 801491 and 801510 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). The commit responsible for that range was https://chromium.googlesource.com/chromium/src/+/[redacted], which enabled the Native File System API by default. Running the bisect again with the appropriate flag set narrowed it to https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted], and the commit that introduced the issue was https://chromium.googlesource.com/chromium/src/+/[redacted].

Impact

A user who trusts the visible page can be induced to hand a file to an attacker-controlled origin. The dialog gives no indication of its true origin, and the file handle goes to the pop-up page rather than the site displayed behind the dialog. The report describes the dialog as potentially misleading users about its origin, and the selected file handle goes to the pop-up page.

Fix

The report proposes one possible mitigation: before displaying the file picker dialog, perform an additional check to determine whether its display area would substantially occlude the page that triggered showOpenFilePicker(). For instance, if the dialog covers more than 50% of the triggering page, it should not be shown and should be dismissed. The report does not state which fix, if any, was ultimately applied.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Chrome has a feature that lets a website ask you to pick a file from your computer. When you pick one, the website gets access to that file. The window that asks you to pick the file is drawn by Chrome itself, not by the website, so it looks official and trustworthy. Most people assume that the file picker belongs to the site they can see behind it.

This report shows that assumption can be broken. By using two browser windows together, a malicious page can make the file picker appear on top of a completely different, trusted website (the report uses Google as the example). You see the file picker and the Google page behind it, so you think Google is asking for the file. In reality the request came from the attacker's hidden little window, and the file goes to the attacker.

The problem was filed through the Chrome VRP (Chrome's Vulnerability Reward Program, the scheme where security researchers report bugs in Chrome and can receive a payment for a valid one). It was classified as a UI misrepresentation weakness in the FileAPI component, rated medium severity, and disclosed on 3 November 2026. The reporter is Luan Herrera (@lbherrera_).

Background concepts, from zero

Before the details, here are the ideas the report relies on.

  • A browser window versus a tab. A tab lives inside the browser window. A pop-up is a separate small window that a website can ask the browser to open. The page that opens a pop-up is called the opener.
  • An API. An API (Application Programming Interface) is a set of commands a program offers so that other programs can use its features. A website's JavaScript code can call browser APIs to do things like open a file picker. Think of it as a menu of actions the browser lets a page order from.
  • The File System Access API. This is the Chrome feature that lets a web page ask you to open or save files on your computer. The specific command used here is window.showOpenFilePicker(), which shows the native "choose a file" dialog.
  • A file handle. When you pick a file, the page does not get the whole file contents straight away. It gets a handle, a kind of reference or claim ticket that lets the page read the file later. Whoever holds the handle can use the file.
  • A native dialog. A dialog drawn by the browser or operating system rather than by the website. Because it is not part of the page, it carries the browser's authority: users trust it more than page content.
  • Cross-origin. Two pages are cross-origin when they come from different sites (for example, an attacker's page and google.com). Browsers keep such pages apart for security. The report's point is that the dialog visually blurs that separation.
  • UI misrepresentation. A weakness class where the interface shows the user something misleading: here, a trusted dialog appears to belong to a site that did not trigger it. Nothing is hacked in the classic sense; the user is simply shown a false picture.
  • WebContents. Chrome's internal object representing the contents of one tab or window. Each pop-up and each tab has its own WebContents.
  • WebContentsObserver. A piece of Chrome code that watches a WebContents and is told when something happens to it, such as it becoming invisible.
  • HIDDEN. The state Chrome uses for a WebContents that is not visible on screen. A window that is tiny but still on screen is not HIDDEN.
  • setTimeout. A JavaScript function that runs some code after a delay, measured in milliseconds. setTimeout(250ms) means "run this a quarter of a second from now".
  • Bisect. A debugging technique: test many versions of the software, halving the range each time, to find the exact change that introduced a bug. Like finding which day a smell appeared by sniffing the fridge every few days and narrowing down.
  • Commit. A single recorded change to the source code of a project such as Chrome.
  • VRP. Vulnerability Reward Program: a scheme where a company pays researchers for reporting security bugs.

Context

Chrome's File System Access API exposes window.showOpenFilePicker(), which opens a native file picker dialog and, when the user selects a file, hands the resulting file handle to the page that called it. Because that dialog is a trusted browser surface, users reasonably assume it belongs to the site they can see behind it. This report, filed through the Chrome VRP, shows that assumption can be broken: the dialog can be displayed over a cross-origin page with no indication of who triggered it, by combining two windows.

The issue was tracked as a UI misrepresentation weakness in the FileAPI component, rated medium severity, and disclosed on 3 November 2026. The reporter is Luan Herrera (@lbherrera_).

Setup

The researcher was working from a prior issue, 337356054, and researching variants of it. In other words, an earlier bug had already been reported, and the researcher was checking whether the same idea could be made to work in a slightly different way. That is a common and useful habit in security work: a fix for one path often leaves a neighbouring path open.

The affected builds listed in the report are:

Channel Version
Stable 144.0.7559.97
Beta 145.0.7632.18
Dev 146.0.7647.4
Canary 146.0.7653.0

Chrome ships in several channels: Stable is the normal release everyone uses, Beta is the next version being tested, Dev is an earlier preview, and Canary is the most experimental build, updated most often. The report lists these builds as affected.

Operating system: Windows 11 24H2.

The reproduction needs two files, index.html and popup.html, placed in the same folder and served by a web server on port 8080. No accounts or special configuration are mentioned. Serving files on a local web server means running a small program on your own computer that hands out those two pages to the browser at an address like http://localhost:8080/. This mimics a real website without needing one on the internet.

Finding it

The starting point was the earlier fix in https://chromium-review.googlesource.com/c/chromium/src/+/6966639, which made FileSystemChooser a WebContentsObserver so it could detect when the tab becomes invisible and close the dialog. FileSystemChooser is the part of Chrome that shows the file picker. Making it a WebContentsObserver means it gets notified when the tab it belongs to is hidden, and it can then close the dialog so the user is not asked to pick a file for a page they can no longer see.

That defence assumes the dialog and the page that triggered it live in the same visibility context. The researcher noticed that cross-window manipulation is not accounted for: the visibility check only monitors the WebContents where the dialog was triggered.

That leaves a gap. A file picker can be opened in a pop-up window, and that pop-up stays "visible" (not HIDDEN) even while the attacker resizes it to a small size and positions it directly beneath the file picker dialog. The pop-up is then completely obscured by the dialog itself, while the attacker navigates the opener window to a trusted site. The user sees only the file picker and the trusted domain behind it, with nothing indicating that the dialog came from a different, now hidden pop-up window.

A simple comparison: imagine a shop assistant who is told to stop serving a customer if that customer leaves the room. The customer does not leave; they just crouch behind the counter. The rule was followed to the letter, but the customer is still there, unseen.

Exploitation

Step 1: open the pop-up

The user visits the attacker-controlled page, which opens a pop-up window (popup.html).

Why this step: the attacker needs a second window that can own the file picker, separate from the window that will later show the trusted site.

Step 2: trigger the picker from the pop-up

The user clicks inside the pop-up, which calls window.showOpenFilePicker(). The dialog is therefore owned by the pop-up's WebContents, not by the opener.

Step 3: resize, reposition and navigate the opener

A setTimeout(250ms) callback runs in parallel. It resizes the pop-up to 100×100 pixels, moves it to the centre of the screen directly beneath where the file picker dialog will appear, and navigates the opener window to a trusted domain (the report uses www.google.com as the example).

The pop-up is shrunk so it can hide behind the dialog, and the opener is sent to a trusted site so that the page visible behind the dialog looks legitimate.

Step 4: the dialog covers the pop-up

The file picker appears on screen and completely covers the resized pop-up window.

Step 5: the misleading composition

The pop-up is now visually hidden behind the dialog. The user sees the file picker and the Google page behind it, which creates the impression that the dialog originated from the trusted site.

Step 6: the file goes to the attacker

If the user selects a file, the attacker-controlled page (popup.html) receives the file handle, not the trusted site shown in the background. The user has handed a file to the attacker's pop-up page rather than the trusted site.

Reproduction case

  1. Download index.html and popup.html and place them in the same folder.
  2. Serve the files using a web server on port 8080.
  3. Navigate to http://localhost:8080/index.html and click anywhere on the page.
  4. A pop-up window opens. Click on Click here to navigate to Google! in the pop-up.
  5. The file picker dialog appears while https://www.google.com is displayed in the background.
  6. If the user selects a file, it is accessible to the attacker's pop-up page, not to www.google.com.

A video demonstrating the issue was attached to the report as repro.mp4.

Root cause

The visibility check introduced by the earlier fix only monitors the WebContents where the dialog was triggered. A pop-up that has been shrunk and tucked behind the dialog is still not HIDDEN, so the mitigation never fires. The dialog's own size and position relative to the triggering page are never considered, which is what allows it to fully occlude the page that opened it while a different, trusted page sits in the opener window.

On the bisect side, the affected ranges were identified as between 801491 and 801510 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). The commit responsible for that range was https://chromium.googlesource.com/chromium/src/+/[redacted], which enabled the Native File System API by default. Running the bisect again with the appropriate flag set narrowed it to https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted], and the commit that introduced the issue was https://chromium.googlesource.com/chromium/src/+/[redacted].

In plain terms: the researcher tested many Chrome builds, halving the range each time, until only one change remained.

Impact

A user who trusts the visible page can be induced to hand a file to an attacker-controlled origin. The dialog gives no indication of its true origin, and the file handle goes to the pop-up page rather than the site displayed behind the dialog. The report frames this as potential user deception about the origin of the dialog; it does not describe any further capability beyond receiving the selected file handle.

Fix

The report proposes one possible mitigation: before displaying the file picker dialog, perform an additional check to determine whether its display area would substantially occlude the page that triggered showOpenFilePicker(). For instance, if the dialog covers more than 50% of the triggering page, it should not be shown and should be dismissed. The report does not state which fix, if any, was ultimately applied.

Glossary

  • API: a set of commands a program offers so other programs can use its features.
  • Bisect: a debugging method that halves a range of versions repeatedly to find the change that introduced a bug.
  • Canary: the most experimental Chrome release channel.
  • Commit: a single recorded change to a project's source code.
  • Cross-origin: belonging to different sites, which browsers keep separated for security.
  • Dev: an early preview Chrome release channel.
  • File handle: a reference that lets a page read a file the user selected.
  • File System Access API: the Chrome feature that lets web pages ask the user to open or save files.
  • FileSystemChooser: the part of Chrome that displays the file picker.
  • HIDDEN: the state of a WebContents that is not visible on screen.
  • Native dialog: a dialog drawn by the browser or operating system rather than by the website.
  • Opener: the page or window that opened a pop-up.
  • Pop-up: a separate browser window opened by a website.
  • setTimeout: a JavaScript function that runs code after a delay in milliseconds.
  • Stable: the normal Chrome release channel used by everyone.
  • UI misrepresentation: a weakness where the interface shows the user something misleading.
  • VRP: Vulnerability Reward Program, a scheme paying researchers for security reports.
  • WebContents: Chrome's internal object for the contents of one tab or window.
  • WebContentsObserver: Chrome code that watches a WebContents and is notified when something happens to it.
  • window.showOpenFilePicker(): the JavaScript command that opens the native file picker.

More by Luan Herrera

View all

30 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.