Missing authorization in Omnibox (CVE-2026-87475)
A web page can silently overwrite the X11 PRIMARY selection clipboard without a user gesture by selecting text during a mousemove event. If the user middle-clicks the omnibox lock/tune icon or the New Tab button, the browser navigates to the attacker-controlled clipboard content, bypassing restrictions to reach sensitive schemes like file:// or chrome://.
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: On Linux, a web page can silently overwrite the X11 PRIMARY selection clipboard without a user gesture by selecting text during non-activating input events like mousemove. If a user middle-clicks the omnibox lock/tune icon or the New Tab button, the browser performs a browser-initiated navigation to the poisoned clipboard content. This bypasses restrictions, allowing a renderer to force navigation to sensitive schemes like file:// or chrome://.
Affected files:
chrome/browser/ui/views/location_bar/location_bar_view.ccchrome/browser/ui/views/tabs/tab_strip.ccchrome/browser/ui/views/location_bar/location_icon_view.cccontent/browser/renderer_host/render_frame_host_impl.cccontent/browser/renderer_host/render_widget_host_view_aura.cccomponents/omnibox/browser/omnibox_text_util.ccchrome/browser/ui/omnibox/omnibox_edit_model.ccchrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
Estimated timestamp from git blame: 2026-04-17
Vulnerability Overview
On Linux systems supporting the X11 PRIMARY selection clipboard, a web page can programmatically overwrite this clipboard buffer without requiring transient user activation (a user gesture). It achieves this by calling input.select() during a common, non-activating input event such as mousemove.
This clipboard content is then utilized by certain browser UI components—specifically the omnibox lock/tune icon and the New Tab (+) button—when they are middle-clicked. Because these UI components initiate a navigation using the clipboard content as if it were user-typed input, it allows a renderer to force a browser-initiated navigation to sensitive schemes such as file://, chrome://, and devtools://, bypassing the security restrictions that normally block web-to-local navigations.
Technical Analysis
1. Renderer Poisoning of PRIMARY Selection
In Blink, programmatic selection changes usually require an input event to be synced to the browser. While a simple setInterval will fail the HandlingInputEvent() check in RenderFrameImpl::DidChangeSelection (content/renderer/render_frame_impl.cc:4377), an attacker can bypass this by calling input.select() inside a mousemove event handler. Because mousemove is an input event, the check passes, and RenderFrameImpl::SetSelectedText triggers the mojom::LocalFrameHost::TextSelectionChanged IPC.
2. Browser-Side Silent Clipboard Write
The browser process receives this IPC in RenderFrameHostImpl::TextSelectionChanged. It forwards the selection to RenderWidgetHostViewAura::OnTextSelectionChanged (content/browser/renderer_host/render_widget_host_view_aura.cc:3372). On Linux, this method directly writes the selected text to the system's PRIMARY selection (ui::ClipboardBuffer::kSelection) via ui::ScopedClipboardWriter. Crucially, this path does not perform any transient user activation check, allowing the background script to silently overwrite the middle-click clipboard every time the mouse moves.
3. Vulnerable Sinks
The attacker's payload (e.g., a restricted URL) now sits in the PRIMARY selection. If the user intends to middle-click-paste their own text or simply misses a click, they may hit one of two vulnerable sinks:
- Location Icon Middle-Click: Middle-clicking the tune/lock icon triggers
LocationBarView::OnLocationIconPressed(chrome/browser/ui/views/location_bar/location_bar_view.cc:2217). This reads the PRIMARY selection and callsPasteAndGo. WhileSanitizeTextForPasteremovesjavascript:URLs, it does not block other sensitive schemes. - New Tab Button Middle-Click: Middle-clicking the New Tab (+) button triggers
TabStrip::NewTabButtonPressedand callschrome::NewTabFromClipboardURL(chrome/browser/ui/browser_commands.cc:1184).
4. Navigation Bypass
Both sinks pass the attacker-controlled text to the AutocompleteClassifier. Schemes like chrome:// and file:// are recognized as valid. The browser then constructs a NavigateParams object to initiate the navigation. Because the navigation originates from the browser UI, the is_renderer_initiated flag defaults to false. The navigation subsystem treats this as a trusted, browser-initiated action, successfully bypassing the security checks that normally prevent renderers from navigating to restricted URLs.
Potential Reproduction Steps
Note: Our tooling agent does not have the ability to run code, but the following steps are suggested based on code analysis.
-
On a Linux system (X11 or Wayland with primary selection), host a page with the following script:
JavaScript let input = document.createElement('input'); input.style.position = 'absolute'; input.style.left = '-9999px'; document.body.appendChild(input); // Hijack the primary selection on mouse movement to bypass HandlingInputEvent() checks document.addEventListener('mousemove', () => { input.value = 'file:///etc/passwd'; // Or chrome://crash, chrome://settings input.select(); }); -
Open the page in Chrome and move the mouse over the viewport.
-
Middle-click the tune/lock icon in the omnibox.
-
Observe that the current tab navigates to
file:///etc/passwd. -
Alternatively, middle-click the
+(New Tab) button and observe the same URL opening in a new tab.
Suggested Fix
To address this issue, writing to the PRIMARY clipboard buffer (ui::ClipboardBuffer::kSelection) via the TextSelectionChanged IPC should be restricted.
- Browser-Side Enforcement:
RenderWidgetHostViewAura::OnTextSelectionChangedshould verify that the frame currently has transient user activation before writing to the clipboard. - Renderer-Side Enforcement: Alternatively, the renderer (
RenderFrameImpl::DidChangeSelectionorSetSelectedText) should require transient user activation (not justHandlingInputEvent(), which is true for non-activating events likemousemove) before sending theTextSelectionChangedIPC to update the global clipboard.
Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f
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. 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 browser writes renderer-supplied selection text to the X11 PRIMARY clipboard without checking for transient user activation, and later browser UI middle-click handlers treat that clipboard text as trusted user input for navigation.
Impact
A renderer could force a browser-initiated navigation to sensitive schemes such as file://, chrome://, and devtools://, bypassing the restrictions that normally block web-to-local navigations; the report notes the reproduction steps are based on code analysis and were not executed.
What the attacker needed
Linux with X11 PRIMARY selection; victim moves mouse over attacker page; victim middle-clicks a browser UI button
The fix
The browser-side clipboard write should verify transient user activation before writing to the PRIMARY selection, or the renderer should require transient user activation (not just an input event) before sending the selection-changed IPC.
How it was found
- Host a page that creates a hidden input and selects attacker-chosen text inside a mousemove handler.
- Open the page in Chrome and move the mouse over the viewport.
- Middle-click the tune/lock icon in the omnibox.
- Observe the current tab navigating to the attacker-chosen URL.
- Alternatively, middle-click the New Tab (+) button and observe the same URL opening in a new tab.
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.
On Linux, the PRIMARY selection is a clipboard that automatically holds whatever text you last highlighted. This report shows that a malicious web page can put its own text into that clipboard just by moving your mouse, without you clicking anything. If you then middle-click certain browser buttons, the browser treats that text as if you typed it and opens it, which can lead to local files or internal browser pages.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.