Inappropriate implementation in Extensions (CVE-2026-13999)
The extension short_name field was not sanitised like the main name field, so it could contain newlines and unterminated bidirectional control characters. A malicious extension could use this to distort or forge text in browser UI such as the Omnibox placeholder and the ChromeOS certificate dialog.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 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: The Extension::LoadShortName function fails to sanitize the extension's short name, allowing it to contain unterminated bidirectional control characters and newlines. This enables malicious extensions to manipulate browser UI layout and forge content in security-sensitive surfaces like permission dialogs and the Omnibox.
Affected files:
extensions/common/extension.ccchrome/browser/ui/views/certificate_selector.ccchrome/browser/ui/views/platform_keys_certificate_selector_chromeos.ccchrome/browser/ui/views/side_panel/extensions/extension_side_panel_manager.ccchrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome_page_handler.ccchrome/browser/extensions/api/omnibox/omnibox_api.ccchrome/browser/ui/extensions/hosted_app_browser_controller.ccchrome/browser/apps/app_service/publishers/extension_apps_base.cc
Estimated timestamp from git blame: 2018-02-13
Summary
A potential vulnerability exists in the extension manifest loading logic where the short_name field is not properly sanitized. Unlike the primary name field, short_name bypasses whitespace collapsing and bidirectional (BiDi) formatting termination. This allows an extension to include newlines and unterminated BiDi control characters (e.g., Right-to-Left Override) that can leak into and manipulate surrounding browser-process UI text.
Root Cause Analysis
In extensions/common/extension.cc, Extension::LoadName correctly sanitizes the input by calling base::CollapseWhitespace and base::i18n::SanitizeUserSuppliedString. The latter ensures that directional formatting is terminated, preventing directional state from leaking beyond the string.
However, Extension::LoadShortName (lines 768-783) only calls base::i18n::AdjustStringForLocaleDirection. This function does not terminate directional formatting if the string contains only LTR-strong characters (like a Latin-based spoofing payload). Consequently, characters like U+202E (RLO) remain unterminated, and newlines are preserved.
Potential Impact and Affected UI Sinks
An attacker could potentially use a malicious short_name to spoof identity or forge content in several UI components:
- Omnibox Placeholder (
chrome/browser/ui/views/omnibox/omnibox_view_views.cc:444): An unterminated RLO in the short name can leak into the "Search $1 or type a URL" prompt, reversing the visual order of the remaining text and misleading the user about the Omnibox's state. - ChromeOS PlatformKeys Dialog (
chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.cc): This sink usesviews::StyledLabelto display which extension is requesting certificate access. Newlines in theshort_namecan be used to push the legitimate security prompt out of the visible area or into a scrollable region, while providing forged text that appears to be part of the native UI. - Side Panel and Search Engine Settings: Various other sinks concatenate the short name with localized strings without applying BiDi isolation, potentially leading to visual corruption or spoofing.
Suggested Reproduction Steps
Note: These are potential steps based on code analysis as our environment does not support executing a live Chromium instance.
- Create an extension with a manifest containing a malicious
short_namepayload:"short_name": "Security Update\n\n[Forged Content]\u202E". - Load the extension in Chrome.
- Trigger a UI sink that displays the short name, such as making the extension the default search provider and viewing the Omnibox placeholder, or invoking the
chrome.platformKeysAPI on ChromeOS. - Observe if the newlines manipulate the dialog layout and if the unterminated RLO affects the visual order of adjacent browser text.
Recommended Fix
Update Extension::LoadShortName in extensions/common/extension.cc to match the sanitization logic used in LoadName. Specifically, call base::CollapseWhitespace and base::i18n::SanitizeUserSuppliedString (or its underlying termination logic) before storing the short name.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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, Extension::LoadShortName only calls AdjustStringForLocaleDirection, which does not terminate directional formatting or collapse whitespace, unlike LoadName which uses CollapseWhitespace and SanitizeUserSuppliedString.
Impact
An attacker could potentially spoof identity or forge content in permission dialogs and the Omnibox, though the report is based on code analysis only and no live exploitation was demonstrated.
What the attacker needed
Victim installs a malicious extension; a UI surface displays the short name
The fix
Extension::LoadShortName should be changed to apply the same whitespace collapsing and user-supplied string sanitisation used by LoadName.
How it was found
- Create an extension whose manifest has a short_name containing newlines and a right-to-left override character.
- Load the extension in Chrome.
- Trigger a UI surface that shows the short name, such as the Omnibox placeholder or the ChromeOS platform keys dialog.
- Observe whether the newlines shift the dialog layout and whether the unterminated override changes the visual order of nearby 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.
Some text characters control the direction text is displayed in, and others start a new line. If a program shows such characters without cleaning them up, they can spill over and change how nearby text looks. Here an extension's short display name was not cleaned, so it could make browser prompts look different from what they really say.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.