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:
-
Ungated
stuckBranch:ScrollStateQuerySnapshot::CanExposeScrollOffsets()was designed to prevent the exposure of Autofill-preview scroll offsets to CSS@container scroll-state()queries. However, insideScrollStateQuerySnapshot::UpdateSnapshot(), this check is only applied to thescrollablebranch. TheIsStickyPositioned()(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 -
Incorrect Element Keying in
CanExposeScrollOffsets(): Even if the gate were applied to thestuckbranch, the implementation ofCanExposeScrollOffsets()is incorrect. It castscontainer_toHTMLFormControlElement:C++ bool ScrollStateQuerySnapshot::CanExposeScrollOffsets() { HTMLFormControlElement* form_control = DynamicTo<HTMLFormControlElement>(container_.Get()); return !form_control || !form_control->IsPreviewed(); }For a
scroll-statecontainer query on a sticky<option>inside a<select>,container_is the<option>element. SinceHTMLOptionElementinherits directly fromHTMLElementrather thanHTMLFormControlElement, theDynamicTo<HTMLFormControlElement>cast fails and returnsnullptr, making the function returntrue. TheIsPreviewed()flag is set on the enclosing<select>(which is anHTMLFormControlElement), not the individual<option>element.
Potential Trigger Path / Exploit Scenario
An attacker might construct the following scenario:
- 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. - The page styles the
<option>elements withposition: 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); }). - When the user hovers over an Autofill suggestion, the browser sets the previewed flag on the
<select>and triggers a real scroll viaScrollToOptionto bring the previewed option into view. - The scrolling mutation updates the
ScrollPosition()of the<select>element's scrollable area, which recomputes the sticky offsets of the descendant<option>s. - In the next lifecycle update,
ScrollStateQuerySnapshot::UpdateSnapshot()updates the state for each option container. Because thestuckbranch is ungated, options scrolled past the top boundary evaluate tostuck: top. - JavaScript on the page can then run
getComputedStyle(option, '::before').backgroundColorfor 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
- Apply the
CanExposeScrollOffsets()check to theIsStickyPositioned()branch insideScrollStateQuerySnapshot::UpdateSnapshot(). - Update
CanExposeScrollOffsets()to properly resolve the enclosingHTMLFormControlElement(e.g., by checking if the element is anHTMLOptionElementand resolving its owner select element usingHTMLOptionElement::OwnerSelectElement()) rather than assumingcontainer_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.
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
- The page creates a form with a listbox select and text fields so Autofill is offered.
- The page styles the options as sticky and adds container scroll-state rules that change a pseudo-element's style.
- The user hovers an Autofill suggestion, which previews an option and scrolls it into view.
- The scrolling updates sticky offsets, and the ungated stuck branch marks options as stuck.
- 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.