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

Observable discrepancy in Layout (CVE-2026-87566)

A side-channel in Chromium's Autofill preview allows a malicious page to detect which option is being previewed by observing the visibility of anchor-positioned probe elements via document.elementFromPoint(). This leaks the user's autofill choice before acceptance.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 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: During an Autofill preview on a select element, the listbox is programmatically scrolled to the suggested option. Under default position-visibility behavior, this scroll triggers a UA-internal IntersectionObserver that updates the visibility and hit-testability of anchored probe elements. A malicious webpage can observe which probes are visible via document.elementFromPoint(), leaking the previewed option before user acceptance.

Affected files:

  • third_party/blink/renderer/core/layout/anchor_position_visibility_observer.cc
  • third_party/blink/renderer/core/html/forms/select_type.cc
  • third_party/blink/renderer/core/layout/out_of_flow_layout_part.cc
  • third_party/blink/renderer/core/paint/paint_layer.cc
  • third_party/blink/renderer/core/dom/tree_scope.cc

Estimated timestamp from git blame: 2024-04-03

Root Cause Analysis

A potential side-channel leak exists in the interaction between Blink's Autofill preview scrolling and CSS anchor-positioned visibility tracking.

When a user hovers over an Autofill autofill suggestion, ListBoxSelectType::DidSetSuggestedOption performs a programmatic scroll to the previewed <option> element:

  • File: third_party/blink/renderer/core/html/forms/select_type.cc
  • Method: ListBoxSelectType::ScrollToOptionTask()
C++
box->Layer()->GetScrollableArea()->ScrollIntoView(
    bounds, PhysicalBoxStrut(),
    scroll_into_view_util::CreateScrollIntoViewParams(
        ScrollAlignment::ToEdgeIfNeeded(), ScrollAlignment::ToEdgeIfNeeded(),
        mojom::blink::ScrollType::kProgrammatic, false,
        mojom::blink::ScrollBehavior::kInstant), nullptr);

While standard DOM scroll properties are masked during Autofill previews to prevent leakage, this programmatic scroll changes the layout/scroll position of the select's scroll port.

Under the default position-visibility: anchors-visible behavior, OutOfFlowLayoutPart creates an AnchorPositionVisibilityObserver on any anchored elements:

  • File: third_party/blink/renderer/core/layout/out_of_flow_layout_part.cc
C++
if (is_anchor_positioned && has_anchors_visible_visibility && anchor) {
  anchored->EnsureAnchorPositionScrollData()
      .EnsureAnchorPositionVisibilityObserver()
      .MonitorAnchor(anchor);
}

In AnchorPositionVisibilityObserver::MonitorAnchor, an internal IntersectionObserver is set up with the <select> layout container as the intersection_root and the <option> element as the target:

  • File: third_party/blink/renderer/core/layout/anchor_position_visibility_observer.cc
C++
observer_ = IntersectionObserver::Create(
    anchor_element_->GetDocument(), ...,
    IntersectionObserver::Params{
        .root = intersection_root->GetNode(),
        .thresholds = {IntersectionObserver::kMinimumThreshold},
        .behavior = IntersectionObserver::kDeliverDuringPostLayoutSteps });
observer_->observe(const_cast<Element*>(anchor_element_.Get()));

There are no IsPreviewed() checks on this path. When the listbox scrolls to the previewed option, the internal IntersectionObserver updates the anchored probe's layer visibility flag (invisible_for_position_visibility_) via PaintLayer::SetInvisibleForPositionVisibility.

During hit-testing, PaintLayer::HitTestLayer skips layers marked with this visibility flag:

  • File: third_party/blink/renderer/core/paint/paint_layer.cc
C++
if (InvisibleForPositionVisibility() ||
    HasAncestorInvisibleForPositionVisibility()) {
  return nullptr; // elementFromPoint() falls through to the element behind
}

By querying document.elementFromPoint(), the page's JavaScript can programmatically discover which probe layers have been skipped (i.e. are clipped out), leaking the precise previewed option.


Potential Exploit Scenario

Note: The following are suggested/potential steps as our tooling agent does not currently have the ability to run or execute code.

  1. A page serves a form containing <select size="4" autocomplete="country"> with multiple options <option id="optK">.

  2. The page styles the options and registers fixed probe elements:

    CSS
    #optK { anchor-name: --anchorK; }
    #probeK {
      position: fixed;
      position-anchor: --anchorK;
      left: anchor(left);
      top: 0; width: 4px; height: 4px; z-index: 9999;
    }
    
  3. When the user hovers over an Autofill suggestion, the listbox is scrolled programmatically to the suggested option.

  4. The internal IntersectionObserver triggers, setting invisible_for_position_visibility_ to true on probes associated with options that are clipped out of the select's visible area.

  5. Malicious JavaScript polls document.elementFromPoint(K*4+2, 2) per requestAnimationFrame. For clipped options, the hit-test falls through, returning the background element instead of probeK.

  6. The set of visible probes uniquely identifies the active Autofill preview choice.


Suggested Remediation

To mitigate this issue, ensure that visibility updates driven by the UA-internal IntersectionObserver in AnchorPositionVisibilityObserver respect the Autofill preview state.

When the target anchor (or its containing form control) is in a previewed state (e.g., HTMLSelectElement::IsPreviewed() is true), the observer should avoid applying the updated visibility state to the layer, or ensure that calculations use the un-previewed scroll offset. Alternatively, do not trigger/deliver internal visibility updates if the root element is currently under an active Autofill preview.

Evaluated with Chrome root at commit: 94d9235ebe3b7276e5284f0dc5d55577ff949908


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 internal IntersectionObserver used for anchor-position visibility does not check whether the select element is in an Autofill preview state, so programmatic scrolling during preview updates layer visibility that can be observed by the page.

Impact

A malicious page could learn which autofill suggestion the user is previewing, potentially leaking sensitive information before the user accepts it.

What the attacker needed

Victim uses Chrome with autofill; victim hovers over an autofill suggestion; malicious page with crafted form

The fix

The observer should avoid applying visibility updates when the select element is in a previewed state, or use the un-previewed scroll offset.

How it was found

  1. A page serves a form with a multi-select element and options that have anchor names.
  2. The page styles fixed probe elements anchored to each option.
  3. When the user hovers over an Autofill suggestion, the listbox scrolls to the suggested option.
  4. The internal IntersectionObserver marks probes for clipped options as invisible.
  5. Malicious JavaScript polls document.elementFromPoint() to see which probes are skipped.
  6. The set of visible probes reveals the previewed option.

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 you hover over an autofill suggestion, the browser scrolls the dropdown to show that option. The page can place tiny invisible markers next to each option and check which ones are still clickable using a built-in function. Because the browser hides markers for options that are scrolled out of view, the page can figure out which option you are hovering over.

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.