Inappropriate implementation in Views (CVE-2026-12463)
A logic flaw in Chromium's Linux/X11 window-move loop means the process-global drag-and-drop re-entrancy guard is not set during a tab drag, so a compromised renderer in another window can start a re-entrant drag. This could let the attacker hijack the pointer grab and drop a custom payload, potentially leading to Universal Cross-Site Scripting.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 18 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: A potential logic flaw in Chromium's Linux/X11 window-move loop allows a compromised renderer to bypass the process-global drag-and-drop re-entrancy guard. When a user performs a tab-drag, a nested event loop is entered without setting the g_is_dragging guard, allowing a compromised renderer to initiate a re-entrant drag-and-drop operation. This can let the attacker hijack the active pointer grab and drop a custom payload, potentially leading to Universal Cross-Site Scripting (UXSS).
Affected files:
ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.ccchrome/browser/ui/views/tabs/dragging/tab_drag_controller.ccui/ozone/platform/x11/x11_window.ccui/base/x/x11_desktop_window_move_client.ccui/base/x/x11_whole_screen_move_loop.cc
Estimated timestamp from git blame: 2026-05-28
Root Cause Analysis
During a tab-detach or window-move operation on Linux/Ozone (X11), the browser process enters a nested event loop via X11WholeScreenMoveLoop::RunMoveLoop (defined in ui/base/x/x11_whole_screen_move_loop.cc line 140) which is run with kNestableTasksAllowed (line 184).
Crucially, the process-global re-entrancy guard g_is_dragging (defined in ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc line 39) is only set and checked during system drag-and-drop operations initiated via DesktopDragDropClientOzone::StartDragAndDrop(). Because window-move and tab-drag operations are triggered directly via TabDragController and X11DesktopWindowMoveClient without involving the drag-and-drop client, the g_is_dragging variable remains false during the active window move.
While W1's nested event loop is pumping tasks, a compromised renderer in a second visible window (W2) can invoke a re-entrant drag operation by sending the LocalFrameHost::StartDragging Mojo IPC. Since the nested loop allows nestable tasks, the IPC is processed re-entrantly. When DesktopDragDropClientOzone::StartDragAndDrop is called on W2's root window, the guard check:
if (g_is_dragging) {
return DragOperation::kNone;
}
passes because g_is_dragging is still false. W2's drag client then releases the active mouse capture on W1, grabs the pointer for itself, and hijacks the global XdndSelection selection atom. Subsequent user drag actions are then routed to the attacker's drag-and-drop handler, substituting the user's tab drag with the attacker's payload.
Note that on Windows, this scenario triggers a CHECK(!g_is_dragging) in DesktopDragDropClientWin and terminates the browser process, limiting the impact to Denial of Service. On Linux/Ozone (Wayland), system drag-and-drop is utilized for window moves, which correctly sets g_is_dragging. Consequently, the hijack scenario is specific to the Ozone/X11 platform.
Potential Attack Path
An attacker controlling a compromised renderer process could potentially execute the following steps to trigger this vulnerability (please note that these are suggested/potential steps as our tooling agent does not have the capability to execute code or run a live proof of concept):
- User Action: The user begins dragging a tab in a browser window (W1). This causes
TabDragControllerto initiate a native window move, spawningX11WholeScreenMoveLoop::RunMoveLoopwith a nested event loop allowing nestable tasks. The globalg_is_draggingflag remainsfalse. - IPC Dispatch: The compromised renderer in a second visible window (W2) sends the
LocalFrameHost::StartDraggingMojo IPC with the drag source set to mouse and coordinates targeting W2. - Re-entrant Capture Release: The IPC is processed re-entrantly inside W1's nested event loop. The guard check in
DesktopDragDropClientOzone::StartDragAndDroppasses. W2's drag client executesReleaseCapture()to strip capture from W1. - Pointer Grab and Selection Hijack: W2's drag client starts its drag operation, grabs the pointer (which overrides W1's grab on X11), and takes ownership of the global
XdndSelectionwith the attacker's payload (e.g., ajavascript:URL). - Payload Drop: When the user releases the mouse button over a drop target (such as the bookmarks bar or the page content), the attacker's payload is dropped instead of the tab. If a
javascript:URL is dropped onto a sensitive surface, it can execute arbitrary script, leading to Universal Cross-Site Scripting (UXSS).
Suggested Remediation
To resolve this issue, the process-global re-entrancy guard should be extended to cover both system drag-and-drop operations and platform-level window-move/tab-drag operations.
This can be accomplished by setting a process-global flag or checking if any native move loop is currently active on the platform inside DesktopDragDropClientOzone::StartDragAndDrop(). If a move loop is active, the re-entrant StartDragAndDrop call should be rejected immediately, returning DragOperation::kNone.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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
The process-global re-entrancy guard g_is_dragging is only set during system drag-and-drop operations, not during platform-level window-move or tab-drag loops, so a re-entrant StartDragging call is accepted.
Impact
A compromised renderer could hijack the pointer grab and drop a custom payload, potentially leading to Universal Cross-Site Scripting; the issue is specific to Linux/Ozone X11, while Windows only causes a browser crash and Wayland is not affected.
What the attacker needed
Compromised renderer in a second visible window; user drags a tab on Linux/X11; user releases mouse over a drop target
The fix
The re-entrancy guard should be extended to cover platform-level window-move and tab-drag operations, rejecting a re-entrant StartDragAndDrop call while a move loop is active.
How it was found
- The user begins dragging a tab in window W1, which starts a nested event loop without setting the drag guard.
- A compromised renderer in a second visible window W2 sends a StartDragging IPC.
- The IPC is processed re-entrantly inside W1's nested loop and passes the guard check.
- W2's drag client releases W1's capture, grabs the pointer, and takes ownership of the drag selection with the attacker's payload.
- When the user releases the mouse over a drop target, the attacker's payload is dropped instead of the 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.
When you drag a browser tab, the browser enters a special loop that keeps handling other events. A security check meant to stop two drag operations happening at once is not switched on during this tab drag. A malicious page running in another window could then start its own drag, take over the mouse, and drop harmful content such as a script link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.