Observable discrepancy in Forms (CVE-2026-79287)
Autofill previews inside temporal inputs such as month and date fields are rendered in author-controlled fonts, because these fields skip the font-pinning defence applied to normal text inputs. An attacker could use custom font rules with unicode-range to detect which digits are rendered and so learn the digit set of a stored card expiry date or birthdate during a hover preview.
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 cross-origin information leak exists where autofill previews inside temporal input elements (such as type=month or type=date) are rendered in author-controlled fonts. Because temporal inputs do not use standard text placeholders, they bypass the ::-internal-input-suggested font-pinning defense. An attacker can use custom CSS @font-face rules with unicode-range definitions to detect which digits are rendered, potentially leaking the digit set of the user's stored credit card expiry date or birthdate during hover previews.
Affected files:
third_party/blink/renderer/core/html/forms/multiple_fields_temporal_input_type_view.ccthird_party/blink/renderer/core/html/forms/text_control_element.ccthird_party/blink/renderer/core/html/forms/html_input_element.cccomponents/autofill/core/browser/filling/payments/field_filling_payments_util.cccomponents/autofill/content/renderer/form_autofill_util.cc
Estimated timestamp from git blame: 2019-06-14
Description
When a standard text input field receives an autofill preview (suggested value), the previewed text is rendered within a placeholder element styled with the ::-internal-input-suggested pseudo-element ID. The user-agent stylesheet contains a rule pinning this pseudo-element to a default control font:
input::-internal-input-suggested,
textarea::-internal-input-suggested {
font: -webkit-small-control !important;
font-feature-settings: normal !important;
}
This prevents the page's author-defined CSS from controlling the font-family and styling of the previewed values. However, temporal input fields (handled via MultipleFieldsTemporalInputTypeView) bypass this style-pinning defense.
When HTMLInputElement::SetSuggestedValue() is called, it triggers TextControlElement::SetSuggestedValue(). In TextControlElement::SetSuggestedValue(), a placeholder is queried:
HTMLElement* placeholder = UpdatePlaceholderText();
if (!placeholder)
return; // Early return for temporal/date fields!
Because temporal inputs do not use standard text placeholders, UpdatePlaceholderText() returns nullptr, prompting an early return before the kPseudoInternalInputSuggested pseudo-ID can be applied. Instead, the suggested value is parsed and written directly into the DOM text nodes of the individual subfields of MultipleFieldsTemporalInputTypeView::UpdateView(), which are styled with font: inherit !important; in input_multiple_fields.css.
As a result, when a preview value is displayed, it inherits the parent <input> element's author-defined font. An attacker can exploit this via custom @font-face declarations with unicode-range descriptors to detect which characters are loaded by the browser during the hover-preview state, resulting in a cross-origin leak of stored date/expiry information prior to any form submission.
Potential Attack Scenario
Note: These are potential steps based on code analysis, as our tooling does not currently have the capability to execute code.
-
A page serves a form with a credit card number input and a temporal month input:
HTML <input name="ccnum" autocomplete="cc-number"> <input type="month" autocomplete="cc-exp" max="2022-12"> -
The month input is styled to use a custom font family targeting individual digits (
0through9) usingunicode-rangedefinitions, each pointing to a distinct probe URL on the attacker's server:CSS input[type="month"] { font-family: LeakFont; } @font-face { font-family: LeakFont; src: url('/probe-3'); unicode-range: U+0033; } /* Repeat for all digits */ -
The user focuses the credit card number field and hovers over an autofill suggestion in the dropdown list.
-
When the browser previews the expiration date (e.g.,
2028-07), it writes the parsed digits into the subfield text nodes of the temporal input. These inherit the parent'sLeakFontfamily. -
To shape and render the digits
2,0,8, and7, the browser evaluates the matchingunicode-rangedefinitions and lazily requests/probe-2,/probe-0,/probe-8, and/probe-7from the attacker's server. By tracking which probes are requested, the attacker learns the set of digits present in the user's stored card expiration date.
Suggested Fix
To remediate this issue, temporal input subfields should be styled with a default pinned font whenever the input element is in an autofill-previewed state. This can be achieved by utilizing the existing -internal-autofill-previewed pseudo-class in third_party/blink/renderer/core/html/resources/input_multiple_fields.css:
input:-internal-autofill-previewed::-webkit-datetime-edit-ampm-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-day-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-hour-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-millisecond-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-minute-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-month-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-second-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-week-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-year-field,
input:-internal-autofill-previewed::-webkit-datetime-edit-text {
font: -webkit-small-control !important;
font-feature-settings: normal !important;
}
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.
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 suggested-value code returns early for temporal inputs because they have no placeholder element, so the internal pseudo-element that pins the preview font is never applied and the preview text inherits the page's font.
Impact
An attacker could learn the set of digits in a user's stored card expiry date or birthdate before any form submission, though only during a hover preview and only as a digit set rather than the exact value.
What the attacker needed
Victim has a stored card expiry or birthdate; victim hovers an autofill preview; attacker page hosts the form
The fix
Temporal input subfields should be pinned to a default control font whenever the input is in an autofill-previewed state, using the existing internal autofill-previewed pseudo-class.
How it was found
- Serve a form with a credit card number input and a month input marked for card expiry autofill.
- Style the month input with a custom font family whose unicode-range rules point each digit at a separate probe URL.
- Have the user focus the card number field and hover an autofill suggestion.
- The browser writes the previewed expiry digits into the temporal subfields, which inherit the custom font.
- The browser fetches the probe URLs matching the rendered digits, revealing the digit set.
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 a browser shows a suggested autofill value, it normally forces that preview text into a fixed font so a website cannot style it. Here, date and month fields skip that protection, so the site's own font applies to the preview. A site can supply several fonts, each tied to one digit, and see which font files the browser fetches, which tells it which digits appeared in the preview.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.