Improper input validation in Omnibox (CVE-2026-84357)
The Omnibox DocumentProvider accepted document suggestion URLs from the Google Drive or Cloud Search API without checking their scheme, so a javascript: URL could be placed into the suggestions. If a user selected such a suggestion, the script would run in the context of the currently active tab, giving universal cross-site scripting.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Flapjack, 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 Omnibox DocumentProvider fails to validate the protocol scheme of document suggestion URLs retrieved from the Google Drive/Cloud Search API. If an attacker can inject a javascript: URL into the suggestions, selecting it executes the payload in the active tab's context, leading to a potential Universal Cross-Site Scripting (UXSS).
Affected files:
components/omnibox/browser/document_provider.cc
Estimated timestamp from git blame: 2018-07-19
Summary
A potential Universal Cross-Site Scripting (UXSS) vulnerability exists in the Omnibox DocumentProvider. When processing document suggestions from the Google Drive or Cloud Search API, the provider fails to validate that the returned URLs use a safe protocol (e.g., HTTP or HTTPS). If an attacker can cause a javascript: URL to be returned in the search results, selecting that suggestion in the Omnibox will execute the JavaScript payload in the context of the user's currently active tab.
Technical Details
In components/omnibox/browser/document_provider.cc, the function DocumentProvider::ParseDocumentSearchResults parses the JSON response from the document suggestion service. The url string is extracted directly from the JSON and assigned to match.destination_url using the GURL constructor, which successfully parses javascript: schemes:
const base::DictValue& result = result_value.GetDict();
const std::string title = FindStringKeyOrFallback(result, "title");
const std::string url = FindStringKeyOrFallback(result, "url");
...
match.destination_url = GURL(url);
There is no subsequent validation to ensure the scheme is safe before the match is presented to the user. This contrasts with other Omnibox providers, such as EnterpriseSearchAggregatorProvider, which explicitly enforce gurl.SchemeIsHTTPOrHTTPS().
While the backend service is generally trusted, defense-in-depth principles require that Chrome validates inputs from any network source, especially when they can lead to script execution. This is particularly relevant for Cloud Search, which can index content from various third-party connectors or shared files.
If a javascript: URL is selected by the user, the execution flow is as follows:
OmniboxEditModel::OpenMatch()validates that theGURLis syntactically valid and passes it tochrome::OpenCurrentURL.- The browser's navigation router (
Navigate()) resolves the target WebContents and callsLoadURLWithParams. - In
NavigationControllerImpl::NavigateWithoutEntry, the URL is identified as a renderer debug URL viablink::IsRendererDebugURL. - It bypasses standard navigation and sends an IPC to the active tab's renderer via
HandleRendererDebugURL. - The renderer's
LocalFrameMojoHandler::HandleRendererDebugURLcallsLocalFrame::LoadJavaScriptURL, which explicitly executes the script withCSPDisposition::DO_NOT_CHECKin the main world of the currently viewed page, resulting in UXSS.
Potential Attack Scenario
Please note these are suggested steps, as our tooling agent does not have the ability to run code:
- An attacker influences the data returned by the Google Drive or Cloud Search API. For example, they might share a malicious document shortcut with a
javascript:URL, or use a compromised Cloud Search enterprise connector that provides custom URLs. - The victim types a query into the Omnibox that matches the malicious document.
- Chrome fetches the suggestions, parses the unvalidated URL from the JSON response, and presents it in the Omnibox dropdown.
- The victim selects the malicious suggestion, intending to navigate to the document.
- The
javascript:payload executes synchronously within the origin of whatever page the user was currently viewing when they used the Omnibox. This achieves Universal Cross-Site Scripting (UXSS), allowing the attacker to read cross-origin data, manipulate the DOM, or steal session tokens from the victim's active tab.
Recommendation
Update DocumentProvider::ParseDocumentSearchResults to verify that the suggestion URL is valid and uses a safe scheme (HTTP or HTTPS) before creating an AutocompleteMatch or adding it to the matches list.
GURL gurl(url);
if (!gurl.is_valid() || !gurl.SchemeIsHTTPOrHTTPS()) {
continue;
}
// ...
match.destination_url = gurl;
Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff
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 parser assigned the URL from the API response directly to the match destination using the GURL constructor, which accepts javascript: schemes, with no check that the scheme is HTTP or HTTPS.
Impact
If a user selects a malicious suggestion, the script could run in the active tab's origin, potentially letting the attacker read cross-origin data, change the page or steal session tokens; the report notes the backend is generally trusted and the steps are suggested rather than demonstrated.
What the attacker needed
Attacker controls suggestion data; victim searches a matching term; victim selects the suggestion
The fix
The parser should be changed to reject any suggestion URL that is invalid or not HTTP/HTTPS before creating the match.
How it was found
- An attacker influences the data returned by the Google Drive or Cloud Search API, for example by sharing a malicious document shortcut.
- The victim types a query into the Omnibox that matches the malicious document.
- Chrome fetches the suggestions, parses the unvalidated URL and shows it in the Omnibox dropdown.
- The victim selects the malicious suggestion.
- The javascript: payload executes in the origin of the page the user was viewing.
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.
The address bar suggests documents from Google Drive and Cloud Search. Chrome took the web address of each suggestion straight from the server's answer without checking what kind of address it was. A special kind of address starting with javascript: runs code instead of opening a page, so choosing such a suggestion would run an attacker's code inside whatever site the person was already looking at.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.