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

Observable discrepancy in CSS (CVE-2026-91725)

A CSS container query feature in Blink could let a page detect which Autofill suggestion a user is hovering over by reading styles of a sticky option element. This leaks private data such as country or card-expiry month before the user accepts the suggestion.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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: A potential information disclosure vulnerability in Blink's CSS container queries may allow websites to leak the index of an Autofill-previewed option inside a select listbox. The privacy mitigation in CanExposeScrollOffsets is bypassed because it is not applied to the sticky-positioned stuck branch and incorrectly inspects the option element instead of the enclosing select element. This allows a page to query pseudo-element styles to deduce which option is previewed when a user hovers over an Autofill suggestion.

Affected files:

  • third_party/blink/renderer/core/css/scroll_state_query_snapshot.cc

Estimated timestamp from git blame: 2026-05-28

Summary

A potential information disclosure vulnerability in Blink's implementation of CSS container queries may allow malicious websites to leak the index of an Autofill-previewed <option> element inside a <select> listbox before the user accepts the suggestion. This bypasses the privacy protections implemented to prevent Autofill-preview leaks.

Note: The following analysis and steps are potential/suggested behaviors based on source-code review, as our tooling does not currently support dynamic execution of proof-of-concept exploits.

Root Cause Analysis

The issue is caused by two distinct logical flaws in ScrollStateQuerySnapshot located in third_party/blink/renderer/core/css/scroll_state_query_snapshot.cc:

  1. Ungated stuck Branch: ScrollStateQuerySnapshot::CanExposeScrollOffsets() was designed to prevent the exposure of Autofill-preview scroll offsets to CSS @container scroll-state() queries. However, inside ScrollStateQuerySnapshot::UpdateSnapshot(), this check is only applied to the scrollable branch. The IsStickyPositioned() (stuck) branch is completely ungated:

    C++
    if (layout_object) {
      if (layout_object->IsStickyPositioned()) {                        // <--- No CanExposeScrollOffsets() check
        PhysicalOffset sticky_offset = layout_object->StickyPositionOffset();
        if (sticky_offset.left > 0) {
          stuck_horizontal = ContainerStuckPhysical::kLeft;
        } else if (sticky_offset.left < 0) {
          stuck_horizontal = ContainerStuckPhysical::kRight;
        }
        if (sticky_offset.top > 0) {
          stuck_vertical = ContainerStuckPhysical::kTop;                // Matches scroll-state(stuck: top)
        } else if (sticky_offset.top < 0) {
          stuck_vertical = ContainerStuckPhysical::kBottom;
        }
      }
      ...
      PaintLayerScrollableArea* scrollable_area = layout_object->GetScrollableArea();
      if (scrollable_area && CanExposeScrollOffsets()) {                // <--- Gate only applied here
    
  2. Incorrect Element Keying in CanExposeScrollOffsets(): Even if the gate were applied to the stuck branch, the implementation of CanExposeScrollOffsets() is incorrect. It casts container_ to HTMLFormControlElement:

    C++
    bool ScrollStateQuerySnapshot::CanExposeScrollOffsets() {
      HTMLFormControlElement* form_control =
          DynamicTo<HTMLFormControlElement>(container_.Get());
      return !form_control || !form_control->IsPreviewed();
    }
    

    For a scroll-state container query on a sticky <option> inside a <select>, container_ is the <option> element. Since HTMLOptionElement inherits directly from HTMLElement rather than HTMLFormControlElement, the DynamicTo<HTMLFormControlElement> cast fails and returns nullptr, making the function return true. The IsPreviewed() flag is set on the enclosing <select> (which is an HTMLFormControlElement), not the individual <option> element.

Potential Trigger Path / Exploit Scenario

An attacker might construct the following scenario:

  1. A page presents a form with a listbox <select size=2 autocomplete="country"> containing multiple options, and some text fields to make the form Autofill-eligible.
  2. The page styles the <option> elements with position: sticky; top: 0; container-type: scroll-state; and adds @container scroll-state(stuck: top) rules that apply style modifications to a pseudo-element (e.g., option:nth-child(K)::before { content: ''; background-color: rgb(K, 0, 0); }).
  3. When the user hovers over an Autofill suggestion, the browser sets the previewed flag on the <select> and triggers a real scroll via ScrollToOption to bring the previewed option into view.
  4. The scrolling mutation updates the ScrollPosition() of the <select> element's scrollable area, which recomputes the sticky offsets of the descendant <option>s.
  5. In the next lifecycle update, ScrollStateQuerySnapshot::UpdateSnapshot() updates the state for each option container. Because the stuck branch is ungated, options scrolled past the top boundary evaluate to stuck: top.
  6. JavaScript on the page can then run getComputedStyle(option, '::before').backgroundColor for each option to determine which option is currently stuck at the top, allowing it to deduce the exact index of the Autofill-previewed option (and thereby the user's private data, such as country, state, card-expiry month) without user consent or interaction beyond hovering.

Suggested Remediation

  1. Apply the CanExposeScrollOffsets() check to the IsStickyPositioned() branch inside ScrollStateQuerySnapshot::UpdateSnapshot().
  2. Update CanExposeScrollOffsets() to properly resolve the enclosing HTMLFormControlElement (e.g., by checking if the element is an HTMLOptionElement and resolving its owner select element using HTMLOptionElement::OwnerSelectElement()) rather than assuming container_ itself is always the form control.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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 two logic flaws: the privacy check is not applied to the sticky-positioned branch, and the check inspects the option element instead of its enclosing select, so it always allows exposure.

Impact

A malicious page could deduce the index of the Autofill-previewed option and thereby learn private user data such as country, state or card-expiry month, without consent beyond hovering; the analysis is based on source review and was not dynamically confirmed.

What the attacker needed

Victim hovers an Autofill suggestion; page uses CSS container queries; Autofill-eligible form

The fix

The check should be applied to the sticky branch and should resolve the enclosing select element rather than assuming the container is the form control.

How it was found

  1. The page creates a form with a listbox select and text fields so Autofill is offered.
  2. The page styles the options as sticky and adds container scroll-state rules that change a pseudo-element's style.
  3. The user hovers an Autofill suggestion, which previews an option and scrolls it into view.
  4. The scrolling updates sticky offsets, and the ungated stuck branch marks options as stuck.
  5. JavaScript reads the pseudo-element style of each option to work out which one is previewed.

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 previews it in the form. The page is not supposed to be able to tell which suggestion you are looking at. Here, a styling feature meant to help pages react to scrolling accidentally reveals which option is highlighted, so a malicious page could learn private details like your country or card expiry month.

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.