Observable discrepancy in DOM (CVE-2026-87623)
A scroll-button pseudo-element on a size-limited select reads the live scroll position even while an Autofill suggestion is being previewed, so its :disabled/:enabled state changes in a way a page can observe. An attacker could poll the computed style to infer which previewed option was scrolled into view and so reconstruct private Autofill data before the user accepts it.
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: A potential security vulnerability exists where a malicious website can leak a user's previewed Autofill options within a <select size=N> element before they accept the suggestion. This is caused by ScrollButtonPseudoElement::UpdateSnapshot querying the unmasked scroll position of the originating element without checking if the element is currently in an Autofill preview state. An attacker could potentially observe the :disabled or :enabled state changes on the ::scroll-button pseudo-element to reconstruct the previewed value.
Affected files:
third_party/blink/renderer/core/dom/scroll_button_pseudo_element.ccthird_party/blink/renderer/core/dom/scroll_button_pseudo_element.h
Estimated timestamp from git blame: 2024-12-03
Root Cause Analysis
ScrollButtonPseudoElement::UpdateSnapshot() — a PostLayoutSnapshotClient that runs after every layout — reads its originating element's live PaintLayerScrollableArea::ScrollPosition() and derives the author-observable :disabled/:enabled state. However, it does not check if the element is currently in an Autofill preview state (IsPreviewed()):
// third_party/blink/renderer/core/dom/scroll_button_pseudo_element.cc:188-254
bool ScrollButtonPseudoElement::UpdateSnapshot() {
...
LayoutBox* scroller =
DynamicTo<LayoutBox>(UltimateOriginatingElement().GetLayoutObject());
if (!scroller ||
(!scroller->IsScrollContainer() && !scroller->IsDocumentElement())) {
...
}
ScrollableArea* scrollable_area = ... scroller->GetScrollableArea();
ScrollOffset current_position = gfx::ToRoundedVector2d(
scrollable_area->ScrollPosition().OffsetFromOrigin()); // <-- unmasked read
...
if (mapping.Top()) {
enabled_ = current_position.y() >
CalculateSnappedScrollPosition(scrollable_area, kScrollUp).y();
} else if (mapping.Bottom()) {
enabled_ = current_position.y() <
CalculateSnappedScrollPosition(scrollable_area, kScrollDown).y();
}
if (enabled != enabled_) SetNeedsStyleRecalc(kLocalStyleChange, ...);
}
The enabled_ state is directly exposed to CSS selector matching:
// third_party/blink/renderer/core/dom/scroll_button_pseudo_element.h:29-32
bool IsEnabled() const { return enabled_; }
bool IsDisabledFormControl() const final { return !IsEnabled(); }
bool MatchesDisabledPseudoClass() const final { return !IsEnabled(); }
bool MatchesEnabledPseudoClass() const final { return IsEnabled(); }
Potential Bypass of Existing Mitigations
Chromium previously resolved a similar leak vector (crbug.com/1261689) by masking the scroll offset for previewed select elements inside the Element::scrollTop getter and ScrollStateQuerySnapshot::CanExposeScrollOffsets(). However, neither of these gates applies to the new ScrollButtonPseudoElement, which directly reads the raw PaintLayerScrollableArea scroll offset.
Potential Trigger Path (Theoretical Sequence)
An attacker could potentially execute the following steps to exploit this leak:
-
Render a form containing
<select size=4 name="country" autocomplete="country">(and potentially multiple sibling selects containing different bisections of the option list to perform binary search). -
Style the scroll buttons:
CSS select[size]::scroll-button(block-start) { content: ""; } select[size]::scroll-button(block-end) { content: ""; } select[size]::scroll-button(block-start):disabled { color: rgb(1, 0, 0); } select[size]::scroll-button(block-end):disabled { color: rgb(0, 1, 0); } -
Set up a JavaScript polling loop using
requestAnimationFramethat queriesgetComputedStyle(select, "::scroll-button(block-start)").color. -
When the user hovers over an Autofill suggestion, Autofill previews the suggested option via
WebFormControlElement::SetSuggestedOption. -
The renderer updates the select element's state to
WebAutofillState::kPreviewedand performs a programmaticScrollIntoViewto center the previewed option. -
During the layout lifecycle update,
ScrollButtonPseudoElement::UpdateSnapshot()executes, reads the unmasked preview scroll position, and recalculates the:disabled/:enabledstate of the pseudo-element. -
The attacker's script reads the updated style (e.g., the color change on
:disabled), leaking whether the previewed option fell within the top/bottom visible pages of the listbox, thereby reconstructing the user's private data.
Note: Our tooling does not yet have the ability to run code, so these are suggested/potential steps to demonstrate the vulnerability path.
Suggested Fix
To remediate this potential leak, ScrollButtonPseudoElement::UpdateSnapshot() should check if the originating element is currently in an Autofill preview state. If it is, the scroll position must be masked (for instance, by treating the scroll offset as zero or returning early and preserving the default state):
auto* originating_form_control = DynamicTo<HTMLFormControlElement>(UltimateOriginatingElement());
if (originating_form_control && originating_form_control->IsPreviewed()) {
// Mask scroll position to prevent leaking the previewed option
return false;
}
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.
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 scroll-button pseudo-element's snapshot code reads the raw scroll offset of its originating element without checking whether that element is in an Autofill preview state, unlike the existing masking in the scrollTop getter and scroll-state query snapshot.
Impact
A malicious page could potentially learn the value of an Autofill suggestion the user has only previewed and not accepted; the report is theoretical and its tooling could not run code to confirm it.
What the attacker needed
Victim hovers an Autofill suggestion; page can style scroll-button pseudo-elements; attacker-controlled page
The fix
The snapshot code should check whether the originating form control is in an Autofill preview state and, if so, mask the scroll position or return early; the text does not say this was fixed.
How it was found
- Render a form with a size-limited select marked for country autocomplete, optionally with sibling selects to narrow the options.
- Style the block-start and block-end scroll buttons so their disabled state produces a readable colour.
- Poll the computed colour of the scroll-button pseudo-element with requestAnimationFrame.
- Hover an Autofill suggestion so the browser previews it and scrolls it into view.
- The pseudo-element's enabled state is recalculated from the unmasked preview scroll position.
- Read the changed style to infer where the previewed option sits in the list.
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 suggested value is visible, but it is meant to hide that movement from the page. Here a small styling hook on the dropdown's scroll buttons still reacts to the hidden movement, so a script on the page can watch that reaction and work out what was suggested. The report is theoretical: the authors say their tooling could not run code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.