Insufficient validation of untrusted input in Omnibox (CVE-2026-7953)
The EnterpriseSearchAggregatorProvider did not validate the scheme of URLs returned by an enterprise search backend for certain suggestion types, allowing a malicious backend to inject javascript: URLs into omnibox suggestions. If a user selected such a suggestion, the script would execute in the context of the currently active tab, potentially leading to Universal Cross-Site Scripting.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 41 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The EnterpriseSearchAggregatorProvider fails to validate the scheme of URLs returned by the enterprise search backend for certain suggestion types. This allows a compromised or malicious backend to inject javascript: URLs into omnibox suggestions. If a user selects one of these suggestions, the script executes in the context of the currently active tab, potentially leading to Universal Cross-Site Scripting (UXSS).
Affected files:
components/omnibox/browser/enterprise_search_aggregator_provider.ccthird_party/blink/renderer/core/frame/local_frame.cc
Estimated timestamp from git blame: 2026-01-25
Summary
A vulnerability exists in EnterpriseSearchAggregatorProvider where it blindly trusts the destinationUri provided by an enterprise search backend for CONTENT and PEOPLE suggestion types. By returning a javascript: URL, a compromised or malicious enterprise backend can execute arbitrary JavaScript in the context of the user's currently active tab (Universal XSS).
While Chrome proactively strips javascript: schemas from URLs that users paste into the omnibox to prevent Self-XSS, this sanitization does not apply to URLs provided asynchronously by search providers via JSON responses.
Potential Execution Steps
Note: These are suggested steps for exploitation, as our setup does not have the ability to run code to verify with a working proof of concept.
- Setup: The victim is in an enterprise environment where the
EnterpriseSearchAggregatorSettingspolicy is configured. An attacker compromises the legitimate enterprise search backend (or a malicious admin configures an attacker-controlled endpoint). - Victim Action: The victim browses to a sensitive target website (e.g.,
https://bank.example.com). - Triggering the Request: The victim focuses the omnibox and types a query, triggering
EnterpriseSearchAggregatorProvider::Startand sending a request to the backend. - Malicious Response: The backend responds with a JSON payload containing a suggestion with a malicious
destinationUri:{"contentSuggestions": [{"destinationUri": "javascript:alert(document.domain)", "document": {"derivedStructData": {"title": "Important HR Document"}}}]} - Unvalidated Extraction: During parsing,
EnterpriseSearchAggregatorProvider::GetMatchDestinationUrlextracts thedestinationUristring usingptr_to_string(result.FindString("destinationUri")). ForCONTENTsuggestions, it returns this string verbatim without checking if the scheme ishttp/https. - Match Creation:
EnterpriseSearchAggregatorProvider::CreateMatchassigns this unvalidated string directly to the newAutocompleteMatch'sdestination_url. - User Selection: The victim sees the benign-looking "Important HR Document" suggestion in the omnibox dropdown and selects it.
- Navigation and Execution:
OmniboxEditModel::OpenMatchinitiates a navigation to thejavascript:URL.NavigationControllerImpl::NavigateWithoutEntryrecognizes thejavascript:scheme as a renderer debug URL (blink::IsRendererDebugURL).- Instead of a standard navigation, it routes the URL directly to the current tab's renderer process via
RenderFrameHostImpl::HandleRendererDebugURL. - The renderer invokes
LocalFrame::LoadJavaScriptURL, which callswindow->GetScriptController().ExecuteJavaScriptURL(...)withCSPDisposition::DO_NOT_CHECK.
- UXSS Realized: The JavaScript payload executes synchronously in the Main World of the currently active document (
https://bank.example.com), allowing the attacker to steal cookies, hijack the session, or manipulate the DOM.
Suggested Fix
The EnterpriseSearchAggregatorProvider must validate the scheme of the destinationUri before creating an AutocompleteMatch.
In EnterpriseSearchAggregatorProvider::GetMatchDestinationUrl (or right before CreateMatch is called), verify that the parsed GURL has an allowed scheme (e.g., SchemeIsHTTPOrHTTPS()). If the URL uses a dangerous scheme like javascript:, file:, or chrome:, the suggestion should be discarded.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. Please feel free to reach out to me if you have concerns or feedback.
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 code trusted the destinationUri from the search backend without checking that its scheme was http or https before creating an omnibox match.
Impact
A compromised or malicious enterprise search backend could execute arbitrary JavaScript in the context of the user's currently active tab, potentially leading to Universal XSS, though the report notes the steps were not verified with a working proof of concept.
What the attacker needed
Enterprise policy configured; attacker controls search backend; victim selects malicious suggestion
How it was found
- The victim is in an enterprise environment with the EnterpriseSearchAggregatorSettings policy configured, and the attacker controls or compromises the search backend.
- The victim browses to a sensitive website.
- The victim focuses the omnibox and types a query, triggering a request to the backend.
- The backend responds with a JSON payload containing a suggestion with a malicious destinationUri.
- The provider extracts the destinationUri without validation and creates an omnibox match.
- The victim selects the benign-looking suggestion, and the javascript: URL is routed to the current tab's renderer and executed.
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 type in the address bar, Chrome can show suggestions from a search service. This report says that if that service is malicious, it could send back a special link that runs code on whatever page you are currently viewing. That would let an attacker read or change things on that page, like your bank site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.