Observable discrepancy in Fonts (CVE-2026-91714)
A side-channel in Blink lets a web page detect which characters appear in autofill preview text when a user hovers over a suggestion. The page can infer the suggested text by defining custom fonts for individual characters and observing which font files load.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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 side-channel vulnerability in Blink allows web pages to leak autofill preview text when a user hovers over autofill suggestions. This occurs because the UA stylesheet system-font keywords resolve to a literal family name ('Arial') of type kFamilyName. As a result, the browser queries the author-supplied @font-face cache, allowing the page to detect which characters are rendered using custom unicode-range definitions.
Affected files:
third_party/blink/renderer/core/css/resolver/style_builder_converter.ccthird_party/blink/renderer/core/html/resources/html.cssthird_party/blink/renderer/core/css/css_font_selector.cc
Estimated timestamp from git blame: 2019-06-24
Root Cause
The User Agent (UA) stylesheet rules designed to style autofill-preview text pin the font to a system-font keyword, rather than to a generic family:
/* third_party/blink/renderer/core/html/resources/html.css */
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;
}
When the font-family longhand is applied in StyleBuilderConverterBase::ConvertFontFamily (in third_party/blink/renderer/core/css/resolver/style_builder_converter.cc):
FontDescription::FamilyDescription StyleBuilderConverterBase::ConvertFontFamily(
const CSSValue& value, ...) {
...
if (const auto* system_font =
DynamicTo<cssvalue::CSSPendingSystemFontValue>(value)) {
desc.family = FontFamily(system_font->ResolveFontFamily(),
FontFamily::Type::kFamilyName); // <-- kFamilyName, not kGenericFamily
return desc;
}
ResolveFontFamily() returns LayoutThemeFontProvider::SystemFontFamily(kWebkitSmallControl). On shipping platforms, this resolves to the literal string "Arial" (via LayoutThemeFontProvider::DefaultGUIFont()).
Because the resulting FontFamily is assigned type kFamilyName (rather than kGenericFamily), CSSFontSelector::GetFontData (in third_party/blink/renderer/core/css/css_font_selector.cc) looks up the family in the document-wide author @font-face cache before falling back to the system font:
if (!font_family.FamilyIsGeneric()) {
if (CSSSegmentedFontFace* face =
font_face_cache_->Get(request_description, family_name)) {
return face->GetFontData(request_description);
}
}
Consequently, any author-defined @font-face { font-family: Arial; src: url(...); unicode-range: ... } rule can shadow the pinned font of the suggested-value pseudo-element. While the UA-origin !important rule prevents the author CSS from changing the font-family property itself, the value it pins (Arial) is resolving to the author-redefined @font-face definition.
Note that textarea is not affected because of the additional textarea::-internal-input-suggested { font-family: monospace !important } rule in html.css, since monospace is a kGenericFamily and skips the font_face_cache_ branch.
Potential Attack Scenario
(Note: These are potential steps and have not yet been verified with a live proof of concept because our tooling agent does not have the ability to run or execute code.)
-
Serve a page containing an input field with autofill enabled:
<input id="name" autocomplete="name">. -
Define custom
@font-facerules forArial, where each rule targets a single ASCII character segment usingunicode-range:CSS @font-face { font-family: Arial; src: url(/probe?char=A); unicode-range: U+0041; } @font-face { font-family: Arial; src: url(/probe?char=B); unicode-range: U+0042; } -
Register a JavaScript listener to observe loaded font faces:
document.fonts.addEventListener('loadingdone', e => { ... })or monitor network requests to/probe?char=.... -
When a user focuses the field and hovers over an autofill suggestion, the preview/suggested text is rendered inside the input field via
input::-internal-input-suggested. -
The rendered characters trigger network requests or font-loading events for the corresponding character probes, leaking the exact character set of the suggested text to the page without any click or form submission.
Suggested Fix
There are two main approaches to resolve this potential vulnerability:
-
CSS Fix (UA Stylesheet): Explicitly set a generic family for both pseudo-elements in
third_party/blink/renderer/core/html/resources/html.cssso that they bypass the author font face cache:CSS input::-internal-input-suggested { font-family: sans-serif !important; } select::-internal-select-autofill-preview-text { font-family: sans-serif !important; } -
C++ Fix (Style Builder Converter): Modify
StyleBuilderConverterBase::ConvertFontFamilyto returnFontFamily::Type::kGenericFamilywhen resolving system-font keywords, which will forceCSSFontSelector::GetFontDatato skip the author-supplied font cache for system fonts.
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
The UA stylesheet pins autofill preview text to a system-font keyword that resolves to the literal family name 'Arial' with type kFamilyName, so the browser checks the author-supplied @font-face cache before falling back to the system font.
Impact
A page could learn the exact characters of autofill preview text without any click or form submission, though the report notes the steps are potential and have not been verified with a live proof of concept.
What the attacker needed
Victim uses autofill; victim hovers over a suggestion; attacker controls the page
The fix
The report suggests either setting a generic family such as sans-serif for the affected pseudo-elements in the UA stylesheet, or changing the style builder converter to return kGenericFamily when resolving system-font keywords.
How it was found
- Serve a page with an input field that has autofill enabled.
- Define custom @font-face rules for Arial, each targeting a single character with unicode-range.
- Register a listener for font loading events or monitor network requests to the probe URLs.
- When the user focuses the field and hovers over an autofill suggestion, the preview text is rendered inside the input.
- The rendered characters trigger font loads for the corresponding character probes, leaking the character set of the suggested text.
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 of the text inside the input box. The browser uses a font called Arial for this preview, but a website can define its own font also named Arial that loads a different file for each character. By watching which files load, the website learns which characters are in the preview, leaking personal data like your name or address.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.