Information leak in CSS (CVE-2026-79291)
Blink's CSS Scroll Markers subsystem reads the scroll offset of a form control without checking whether it is in the Autofill preview state, so a page can observe which option a user is hovering over. An attacker page could then learn Autofill suggestion values such as country or card type before the user accepts them.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential security bypass exists in Blink's CSS Scroll Markers subsystem where an attacker-controlled page can observe which option in a <select> listbox a user is hovering over during an Autofill preview. Due to a missing IsPreviewed() check when resolving scroll offset for scroll marker snapshots, the unmasked preview scroll position can be leaked to the page through the :target-current pseudo-class.
Affected files:
third_party/blink/renderer/core/dom/scroll_marker_group_data.ccthird_party/blink/renderer/core/scroll/scrollable_area.cc
Estimated timestamp from git blame: 2025-03-11
Description
There is a potential information disclosure vulnerability in Blink's CSS Scroll Markers API. It could allow a malicious website to determine which Autofill suggestion a user is currently hovering over or previewing in a <select> listbox before they accept or commit to it. This represents a potential bypass of the mitigations introduced for crbug.com/1261689.
When a user hovers over an Autofill suggestion, the browser triggers a real programmatic scroll of the <select> listbox element to bring the previewed <option> into view. While existing scroll-related APIs (such as scrollTop and ScrollStateQuerySnapshot::CanExposeScrollOffsets()) have been patched with IsPreviewed() checks to hide this programmatic scroll, the CSS Scroll Markers subsystem (ScrollMarkerGroupData) lacks equivalent validation.
An attacker could use anchor-based scroll markers (scroll-target-group) or pseudo-elements (scroll-marker-group) to observe the :target-current pseudo-class state. By checking the pseudo-class state (via CSS styling and JavaScript getComputedStyle), the attacker can identify exactly which <option> has been scrolled into view.
Root Cause Analysis
-
Programmatic scroll during Autofill preview: In
third_party/blink/renderer/core/html/forms/select_type.cc, the listbox scroll is initiated during the preview phase viaListBoxSelectType::DidSetSuggestedOption->ScrollToOption:C++ void ListBoxSelectType::DidSetSuggestedOption(HTMLOptionElement* option) { if (!select_->GetLayoutObject()) return; ... ScrollToOption(option); } -
Unmasked Scroll Offset Read in CSS Scroll Markers: When a programmatic scroll occurs,
PaintLayerScrollableArea::UpdateScrollMarkers()triggersUpdateSelectedScrollMarker()onScrollMarkerGroupData, setting the invalidation state tokNeedsFullUpdate.During the next lifecycle update,
ScrollMarkerGroupData::UpdateSnapshot()callsChooseMarkerRecursively()which reads the unmasked preview scroll offset:C++ active = ChooseMarker(scrollable_area->GetScrollOffsetForScrollMarkerUpdate(), scrollable_area, scroller_box, targets);Neither
scrollable_area->GetScrollOffsetForScrollMarkerUpdate()nor the caller checks whether the scroller is a form control element currently in the preview state (i.e.,IsPreviewed()). -
State Exposure:
ChooseMarkerselects the corresponding scroll marker for the target<option>at the previewed scroll position, andApplyPendingScrollMarker()updates the selected marker state, triggeringPseudoStateChanged(kPseudoTargetCurrent)on the scroll marker element. The page can style:target-currentand read its state usinggetComputedStylein JS, revealing the hovered option.
Potential Impact
If confirmed, this vulnerability allows same-origin renderer-process disclosure of PII from Autofill suggestions (such as country, state, card type, or address line selectors) before the user has consented to filling the form.
Potential Steps to Reproduce
(Note: These are suggested/potential steps; our tooling agent does not yet have the ability to run code.)
-
Render a scrollable listbox with multiple options and assign unique IDs to them:
HTML <select size="4" name="country" autocomplete="country"> <option id="o0">US</option> <option id="o1">UK</option> </select> -
Set up scroll target groups pointing to those option IDs:
HTML <nav style="scroll-target-group: auto;"> <a href="#o0">US</a> <a href="#o1">UK</a> </nav> -
Apply a custom style rule targeting
:target-current:CSS nav a:target-current { color: rgb(13, 37, 0); } -
Periodically query the computed color of the links using
getComputedStyle(a).colorviarequestAnimationFrame. -
Trigger Autofill and hover suggestions in the popup, observing if the script detects the active preview options.
Suggested Fix
Mask the returned scroll offset during scroll marker snapshot updates if the target element is currently in the Autofill preview state. This can be fixed in ScrollableArea::GetScrollOffsetForScrollMarkerUpdate() inside third_party/blink/renderer/core/scroll/scrollable_area.cc:
ScrollOffset ScrollableArea::GetScrollOffsetForScrollMarkerUpdate() {
if (LayoutBox* box = GetLayoutBox()) {
if (auto* form_control = DynamicTo<HTMLFormControlElement>(box->GetNode())) {
if (form_control->IsPreviewed()) {
return ScrollOffset();
}
}
}
...
}
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 a missing IsPreviewed() check when the scroll marker snapshot resolves the scroller's scroll offset, unlike the other scroll APIs that were already patched.
Impact
If confirmed, this could disclose Autofill suggestion values such as country, state, card type or address line to the page before the user consents to filling the form; the report notes the steps are untested.
What the attacker needed
Victim uses Autofill on the attacker's page; victim hovers an Autofill suggestion; browser supports CSS scroll markers
The fix
The scroll offset returned for scroll marker updates should be masked when the target form control is in the Autofill preview state; the text does not say this was fixed.
How it was found
- Render a scrollable listbox with several options, each with a unique ID.
- Add a scroll target group whose links point at those option IDs.
- Add a CSS rule that styles the :target-current link differently.
- Repeatedly read the links' computed colour from script on each animation frame.
- Trigger Autofill, hover suggestions, and watch whether the script detects 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 an Autofill suggestion, the browser quietly scrolls the dropdown so the highlighted option is visible. Other parts of the browser were taught to hide that scroll from web pages, but the newer CSS scroll marker feature was not, so a page can style an element based on which option is currently in view and read that style back with JavaScript. That lets the page learn what the browser is suggesting before you pick it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.