Skip to content
UI spoofing Advisory Advanced CVE-2026-13895

Inappropriate implementation in Autofill (CVE-2026-13895)

The Autofill popup's per-row 500ms dwell-time check, meant to stop UI redress attacks, is skipped when a suggestion is accepted with the TAB key. An attacker who dynamically swaps datalist suggestions while the popup is open could get a sensitive autofill suggestion accepted immediately by a keyboard user.

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 without the Chrome Security team.

Overview: The Autofill popup implements a 500ms dwell-time security check on individual rows to prevent UI redress attacks when a user accepts a suggestion. However, this per-row check is bypassed when accepting a suggestion using the TAB key, allowing an attacker to swap suggestions dynamically and have them accepted immediately if the overall popup has been open long enough.

Affected files:

  • chrome/browser/ui/views/autofill/popup/popup_view_views.cc
  • chrome/browser/ui/views/autofill/popup/popup_row_view.cc
  • chrome/browser/ui/autofill/autofill_popup_controller_impl.cc

Estimated timestamp from git blame: 2025-08-11

Summary

To protect users from UI redress attacks (like clickjacking or suggestion swapping), the Autofill popup implements a security hardening feature (kAutofillPopupDontAcceptNonVisibleEnoughSuggestion). This feature enforces a 500ms dwell-time requirement before a suggestion can be accepted.

The protection is implemented in two layers:

  1. A global popup-level barrier in AutofillPopupControllerImpl that ensures the popup itself has been visible for 500ms.
  2. A per-row barrier in PopupRowView (IsViewVisibleEnough()) that ensures a specific row has been visible for 500ms.

While mouse clicks, gestures, and the ENTER key correctly enforce the per-row barrier, the TAB key bypasses it entirely. If an attacker dynamically updates the suggestions while the popup is open, the global barrier is not reset. The new rows get fresh per-row barriers, but because TAB ignores them, an attacker can trick a user navigating via keyboard into immediately accepting a newly swapped, sensitive suggestion.

Technical Analysis

In chrome/browser/ui/views/autofill/popup/popup_row_view.cc, interactions such as mouse release, gesture tap, and VKEY_RETURN all gate suggestion acceptance on IsViewVisibleEnough():

C++
// popup_row_view.cc : HandleKeyPressEvent
case ui::VKEY_RETURN: {
  if (*GetSelectedCell() == CellType::kContent && controller_ &&
      !kHasKeyModifierPressed && IsViewVisibleEnough()) {
    controller_->AcceptSuggestion(...);
    return true;
  }
}

However, the TAB key is handled in the parent view, PopupViewViews::HandleKeyPressEvent (chrome/browser/ui/views/autofill/popup/popup_view_views.cc):

C++
case ui::VKEY_TAB:
  if (!kHasNonShiftModifier) {
    AcceptSelectedContentOrCreditCardCell(AutofillMetrics::SuggestionAcceptedMethod::kKeyboard);
  }
  return false;

AcceptSelectedContentOrCreditCardCell verifies that a cell is selected and then directly calls controller_->AcceptSuggestion(). It does not check IsViewVisibleEnough() or any other row-level visibility state.

When controller_->AcceptSuggestion() is called, it only checks the global popup-level barrier_for_accepting_. When a web page dynamically updates <datalist> options, AutofillPopupControllerImpl::UpdateDataListValues updates the suggestions and recreates the row views, but it does not reset this global barrier.

Potential Exploitation Steps

An attacker can exploit this inconsistency using the following suggested steps (note: this sequence relies on code analysis; we do not have a working PoC):

  1. The attacker creates a form with an <input> field linked to a JavaScript-controlled <datalist>.
  2. The user interacts with the input, triggering the Autofill popup.
  3. The attacker's script waits for >500ms, satisfying the global AutofillPopupControllerImpl barrier.
  4. The user begins a fast, natural keyboard navigation sequence (e.g., Down Arrow -> TAB) to select the first suggestion and move to the next field.
  5. Just before the user presses Down Arrow, the attacker's script updates the <datalist>, placing a sensitive autofill profile at the top.
  6. The update recreates the row views. The new top row gets a fresh 500ms per-row barrier to protect against immediate acceptance.
  7. The user's Down Arrow key press selects the new top row.
  8. The user's TAB key press triggers AcceptSelectedContentOrCreditCardCell. The per-row barrier is bypassed, and the global barrier has already elapsed.
  9. The sensitive suggestion is accepted immediately, filling the form for the attacker to exfiltrate.

Suggested Fix

Ensure that the TAB key enforces the same security checks as the ENTER key.

One approach is to modify PopupViewViews::AcceptSelectedContentOrCreditCardCell to verify the selected row's visibility before calling the controller:

C++
std::optional<CellIndex> index = GetSelectedCell();
// ... existing checks ...

PopupRowView& row_view = GetPopupRowViewAt(index->first);
if (!row_view.IsViewVisibleEnough()) {
  return false;
}

controller_->AcceptSuggestion(index->first, accept_method);

Alternatively, VKEY_TAB handling could be delegated to PopupRowView::HandleKeyPressEvent similarly to VKEY_RETURN, ensuring unified acceptance logic.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 TAB key handler in the parent popup view calls the controller's accept method directly, without the per-row visibility check that ENTER and mouse interactions enforce.

Impact

A keyboard user could have a sensitive autofill suggestion accepted without the intended dwell time, and the filled value could then be read by the attacker's page; the report is based on code analysis and has no working proof of concept.

What the attacker needed

Victim uses keyboard navigation; attacker controls page with datalist; popup open for over 500ms

The fix

The TAB key should enforce the same per-row visibility check as ENTER, either in the parent accept method or by delegating TAB handling to the row view.

How it was found

  1. The attacker creates a form with an input linked to a JavaScript-controlled datalist.
  2. The user interacts with the input, opening the Autofill popup.
  3. The attacker's script waits more than 500ms so the global popup barrier is satisfied.
  4. The user starts keyboard navigation, for example Down Arrow then TAB.
  5. Just before the Down Arrow, the script updates the datalist to put a sensitive profile at the top, recreating the rows.
  6. The Down Arrow selects the new top row and TAB accepts it, skipping the per-row barrier.

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.

Autofill shows suggestions in a popup, and to stop trickery it makes each row wait half a second before it can be accepted. The report says pressing TAB accepts a row without that wait, so a page that quickly changes the suggestions could get a private saved value chosen by accident. The author only studied the code and did not build a working attack.

What is UI spoofing?

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.

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.