Observable discrepancy in HTML (CVE-2026-79242)
The default autofill preview in a select element inherits the page's font-family, and by using size containment to skip option pre-measurement, a page can trigger a single font fetch matching the previewed option's private-use character. This could let an attacker learn sensitive autofill values such as country or state before the form is submitted.
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: When Chrome autofill previews an address, the suggested select option is rendered in the inner element without a font pin override in html.css. By combining this with size containment to bypass the option pre-measure loop, a page can potentially leak the previewed option via lazy @font-face unicode-range fetches upon hover. This allows side-channel extraction of sensitive autofill fields such as the user's country or state prior to form submission.
Affected files:
third_party/blink/renderer/core/html/resources/html.cssthird_party/blink/renderer/core/html/forms/select_type.ccthird_party/blink/renderer/core/html/forms/menu_list_inner_element.ccthird_party/blink/renderer/core/html/forms/html_select_element.ccthird_party/blink/renderer/core/layout/layout_box.cc
Estimated timestamp from git blame: 2019-06-14
Description of the Potential Issue
Under default settings (appearance: auto), when Chrome autofill previews an address or user profile, it temporarily sets the suggested value in the <select> element's inner shadow element (MenuListInnerElement). This inner element inherits CSS properties, including font-family, directly from the parent host <select> element.
Normally, other autofill preview surfaces (such as text inputs/textareas, or the customizable appearance: base-select variant) have their fonts pinned with !important in third_party/blink/renderer/core/html/resources/html.css to prevent author-controlled font styling:
input::-internal-input-suggested, textarea::-internal-input-suggested {
font: -webkit-small-control !important;
font-feature-settings: normal !important;
}
select::-internal-select-autofill-preview-text {
font: -webkit-small-control !important;
font-feature-settings: normal !important;
}
However, html.css lacks a font pin override for the default appearance: auto inner element (select::-internal-select-inner-element). Consequently, the default preview text renders with the author-controlled font-family from the host <select> element.
Potential Side-Channel / Information Leak Mechanism
Normally, the layout engine shapes every option text to calculate the select's intrinsic width (via MenuListIntrinsicInlineSize in layout_box.cc), which would immediately trigger all @font-face URL fetches on page load. However, if the page sets contain: size on the <select>, the layout engine skips the option pre-measure loop entirely because size containment is active (box.ShouldApplySizeContainment() evaluates to true).
Because the pre-measure loop is bypassed, the only text shaped on layout is the actively rendered preview value in MenuListInnerElement. This triggers exactly one font-face src fetch via its corresponding unicode-range segment.
Potential Steps to Trigger
An attacker-controlled webpage could potentially perform the following steps to exploit this behavior:
-
Provide an address-autofill form with a
<select>element where each<option>label is appended with a unique Private Use Area (PUA) codepoint (e.g.,U+E001for State 1,U+E002for State 2). -
Register a series of
@font-facerules under a custom family name (e.g.,Leak), where each rule maps a specific PUA codepoint'sunicode-rangeto a unique tracking probe URL:CSS @font-face { font-family: Leak; src: url(/probe-state-1); unicode-range: U+E001; } -
Style the
<select>with the custom font family and size containment:select { font-family: Leak; contain: size; }. -
When the user hovers over an Autofill suggestion, the browser previews the address and calls
SetSuggestedValue(), updating the text content ofMenuListInnerElementwith the previewed option. -
The inner element renders and shapes the previewed text containing the PUA character using the inherited font family
Leak. -
The browser initiates a lazy network request for the matching
@font-faceURL. -
The page detects the fetch event (via
document.fonts.onloadingdone, a Service Worker, or server logs) and immediately identifies the user's stored option.
Note: Since our automated security analysis tooling does not currently have the capability to execute code or run dynamic proofs of concept, these steps are theoretical and represent a potential exploit vector.
Suggested Fix
Apply font and text-security overrides to the default select inner element when in a suggested or previewed state. This can be accomplished by adding a dedicated rule in html.css targeting the inner element pseudo-class or styling ::-internal-select-inner-element when the parent select is previewed (e.g., using a pseudo-class such as :-internal-autofill-previewed), ensuring that font: -webkit-small-control !important; and font-feature-settings: normal !important; are enforced to prevent custom author-controlled fonts from being applied during autofill previews.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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 default select inner element lacks the font pinning that other autofill preview surfaces have, so author-controlled font-family applies to the preview text.
Impact
An attacker could potentially learn sensitive autofill fields such as country or state before the form is submitted, though the report notes the steps are theoretical and not dynamically proven.
What the attacker needed
Victim uses Chrome autofill; victim hovers over an autofill suggestion; attacker-controlled webpage
The fix
The default select inner element should be given the same font and font-feature-settings overrides with !important during autofill previews as other preview surfaces.
How it was found
- Create an address autofill form with a select whose option labels each end in a unique private-use character.
- Define font-face rules that map each private-use character to a distinct probe URL.
- Style the select with the custom font family and size containment.
- Hover over an autofill suggestion so the browser previews the address in the select.
- The preview text is shaped with the custom font and triggers a network request for the matching font URL.
- Detect the fetch to identify which stored option was 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 Chrome autofills a dropdown, it briefly shows the suggested value inside the dropdown. The report says that preview text can be made to use a font chosen by the webpage. By giving each possible answer its own special character and its own font file, the page can see which font file the browser downloads and so guess which answer was previewed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.