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

Side-channel information leakage in CSS (CVE-2026-14012)

CSS scroll-state container queries read scroll metrics directly from the layout object, bypassing the JavaScript-level masks that hide autofill preview values. A malicious page could use this to infer the length of a suggested textarea value or the index of a previewed listbox option.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 35 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: CSS scroll-state container queries retrieve scroll-state metrics directly from the PaintLayerScrollableArea layout object, bypassing JavaScript-level autofill preview masks. This potentially allows a malicious page to extract the precise character length of suggested textarea values or the selected index of a listbox dropdown when a user hovers over an autofill suggestion. This logical side-channel leak bypasses the privacy guarantees of autocomplete preview states.

Affected files:

  • third_party/blink/renderer/core/css/scroll_state_query_snapshot.cc
  • third_party/blink/renderer/core/html/forms/html_text_area_element.cc
  • third_party/blink/renderer/core/dom/element.cc

Estimated timestamp from git blame: 2024-10-21

Root Cause Analysis

To prevent malicious websites from learning autofill suggestions prior to user acceptance (i.e., when the user merely hovers over an autofill suggestion), Chromium overrides virtual scroll-metric getters on elements to return fake or masked values if a preview or suggested value is present:

  • For <textarea>, HTMLTextAreaElement::scrollWidth(), scrollHeight(), scrollLeft(), and scrollTop() return fake or masked values if SuggestedValue() is not empty.
  • For listbox <select> elements, Element::scrollTop() returns 0 if the select is non-menu and IsPreviewed() is true.

However, these protective masks are only enforced at the virtual JavaScript getter layer (e.g., Element::scroll*()). The CSS @container scroll-state(scrollable: ...) evaluation machinery bypasses these masks entirely by directly querying the PaintLayerScrollableArea (PLSA) metrics in ScrollStateQuerySnapshot::UpdateSnapshot() (third_party/blink/renderer/core/css/scroll_state_query_snapshot.cc):

C++
if (PaintLayerScrollableArea* scrollable_area =
        layout_object->GetScrollableArea()) {
  ScrollOffset max_offset = scrollable_area->MaximumScrollOffset();  // Unmasked
  ScrollOffset min_offset = scrollable_area->MinimumScrollOffset();
  ScrollOffset offset = scrollable_area->GetScrollOffset();          // Unmasked
  ...
  if (offset.y() > min_offset.y())
    scrollable_vertical |= ContainerScrollable::kStart;   // Leads to scroll-state(scrollable: top)
  if (offset.y() < max_offset.y())
    scrollable_vertical |= ContainerScrollable::kEnd;     // Leads to scroll-state(scrollable: bottom)
}

Because the underlying PLSA scroll offset and layout dimensions are modified during the autofill preview state, this direct query allows an attacker to leak sensitive information via CSS container queries.

Suggested Exploit Scenarios (Potential Steps)

Note: These are potential steps based on source code analysis; our tooling does not currently have the capability to execute code or run interactive tests.

1. Listbox <select> (Option Index Leak)

During preview, ListBoxSelectType::DidSetSuggestedOption triggers a scroll task that brings the previewed option into view by calling ScrollToOption on the underlying PaintLayerScrollableArea. This mutates the PLSA scroll offset.

Although the JavaScript getter Element::scrollTop() returns 0 due to the preview mask, the real scroll offset inside the PLSA is updated. A container-query of @container scroll-state(scrollable: top) on the select container will evaluate to true based on the real offset, allowing styles (such as background colors) to be applied to descendant <option> elements. The page can read back these styles using getComputedStyle(option) to infer the index of the suggested option (such as country, birth-month, or card type).

2. <textarea> (Character Length Leak)

During preview, HTMLTextAreaElement::SetSuggestedValue creates a user-agent shadow <div> containing the suggested value. This placeholder fragment is rendered at its full height, causing the textarea's PLSA MaximumScrollOffset().y() to grow proportionally with the length of the suggested value.

Since Element::setScrollTop is non-virtual and does not have any preview checks, the page can set scrollTop programmatically, which is internally clamped to [0, MaximumScrollOffset().y()]. By setting the scroll offset to a target value K in a binary-search loop across animation frames and observing whether @container scroll-state(scrollable: bottom) triggers layout updates (e.g., modifying a custom scrollbar width and thus altering clientWidth), the page can binary-search the exact MaximumScrollOffset().y() and reconstruct the precise character length of the previewed string.

Suggested Fix

In ScrollStateQuerySnapshot::UpdateSnapshot() (third_party/blink/renderer/core/css/scroll_state_query_snapshot.cc), before querying the PaintLayerScrollableArea metrics, verify whether the container element is in an active autofill preview state (e.g., by checking Element::IsPreviewed() or if SuggestedValue() is non-empty for text controls). If a preview is active, apply the same masking principles used by the virtual JS getters (e.g., clamp the queryable offsets or return zero/faked layout metrics) so that CSS container queries do not expose layout alterations caused by suggested preview text.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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

The autofill preview masks are only applied in the JavaScript getters for scroll properties, while the CSS scroll-state query code reads the underlying layout scroll metrics directly without checking for a preview state.

Impact

A malicious page could learn the exact character length of a suggested textarea value or the selected index of a previewed listbox option, though the report only describes potential steps and does not demonstrate a working exploit.

What the attacker needed

User hovers over an autofill suggestion; victim uses a Chromium-based browser

The fix

The scroll-state query code should check whether the element is in an autofill preview state and apply the same masking as the JavaScript getters.

How it was found

  1. Trigger an autofill preview on a listbox select or textarea.
  2. Use a CSS scroll-state container query to detect the real scroll offset.
  3. Read back the resulting styles with getComputedStyle to infer the option index or character length.

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 shows a preview but tries to hide its details from the website. This report found that a CSS feature can still see the real scroll position, which changes with the preview, so a website could guess what the suggestion is.

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.