Skip to content
Race condition Advisory Advanced CVE-2026-113218

Race condition in DataTransfer (CVE-2026-113218)

On macOS, the drag-and-drop reentrancy guard in the browser process relies on a weak pointer to the source renderer widget, which becomes null if the source frame is detached mid-drag. A compromised renderer could then start a second drag, overwrite the stored drag security state and receive a cross-origin drag payload meant for another frame.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: On macOS, the drag-and-drop reentrancy guard in WebContentsViewMac::StartDragging relies on a base::WeakPtr to the source RenderWidgetHostImpl. If a compromised renderer initiates a drag and immediately detaches the source iframe, this weak pointer is invalidated and the reentrancy guard fails open. This allows the attacker to invoke a second programmatic drag operation, overwriting the browser-side WebContentsViewDragSecurityInfo and bypassing cross-origin drag protection to leak victim data.

Affected files:

  • content/browser/web_contents/web_contents_view_mac.mm
  • content/browser/web_contents/web_contents_view_mac.h
  • content/browser/web_contents/web_drag_dest_mac.mm

Estimated timestamp from git blame: 2026-04-24

Description

There is a potential vulnerability in the macOS drag-and-drop implementation where same-page cross-origin drag protection can be bypassed by a compromised renderer process.

Unlike the Aura implementation which uses a robust reentrancy guard keyed on a persistent boolean state (drag_security_info_.did_initiate()), the macOS implementation in WebContentsViewMac::StartDragging utilizes a weak pointer to the source RenderWidgetHostImpl (drag_source_start_rwh_) as its reentrancy guard:

C++
// content/browser/web_contents/web_contents_view_mac.mm
RenderWidgetHostImpl* source_rwh = 
    static_cast<RenderWidgetHostImpl*>(source_rfh.GetRenderWidgetHost());
// Disallow reentrant drag which could be an attempt to exploit drag state.
if (drag_source_start_rwh_) {
  return;
}

If the initiating source frame is detached while the drag session is active, its RenderWidgetHostImpl is destroyed. This automatically invalidates drag_source_start_rwh_ (making it nullptr and causing operator bool() to evaluate to false), failing the guard open.

When a subsequent programmatic StartDragging IPC is sent by the compromised renderer, the reentrancy check passes. This second call invokes -[WebDragDest initiateDragWithRenderWidgetHost:dropData:], which unconditionally overwrites the browser's drag security state (_dragSecurityInfo):

OBJC
// content/browser/web_contents/web_drag_dest_mac.mm
- (void)initiateDragWithRenderWidgetHost:(content::RenderWidgetHostImpl*)rwhi
                                dropData:(const content::DropData&)dropData {
  _dragSecurityInfo.OnDragInitiated(rwhi, dropData);
}

By overwriting _dragSecurityInfo.site_instance_group_id_ with the attacker's SiteInstanceGroupId, the browser-side target validation (IsValidDragTarget) will succeed when dropping onto the attacker frame, allowing the compromised renderer to capture the sensitive cross-origin drop payload.

Note: These are suggested/potential steps based on manual static analysis of the codebase. Our tooling agent does not currently have the capability to execute code or run functional proof-of-concept exploits.

Potential Attack Sequence

  1. An attacker-controlled main frame (evil.com, SiteInstanceGroup X) embeds a cross-origin victim OOPIF (victim.com, SiteInstanceGroup Y).
  2. The user begins dragging selected content inside the victim.com subframe, triggering the first WebContentsViewMac::StartDragging call, which initializes _dragSecurityInfo.site_instance_group_id_ to Y.
  3. While the drag is active, the compromised attacker renderer detaches the victim subframe (sending FrameHost::Detach). This destroys the victim's RenderWidgetHostImpl and invalidates drag_source_start_rwh_ in the browser process.
  4. The compromised attacker renderer immediately sends a programmatic LocalFrameHost::StartDragging IPC for its own frame.
  5. In WebContentsViewMac::StartDragging, the reentrancy guard evaluates to false because drag_source_start_rwh_ is null. The execution continues, synchronously overwriting _dragSecurityInfo.site_instance_group_id_ to X (attacker's group).
  6. The user releases the mouse (drops the payload) over the attacker-controlled frame area.
  7. IsValidDragTarget(attacker_rwh) returns true because the stored ID was overwritten to X. The browser delivers the original victim drag payload to the attacker's renderer.

Impact

This bypass allows a compromised renderer to steal sensitive cross-origin drag payloads (such as selected text, HTML, or URLs) from other frames on the page, resulting in a Site Isolation bypass.

Suggested Fix

Align the macOS reentrancy guard with the Aura implementation by checking the status of _dragSecurityInfo in WebDragDest instead of relying on a weak pointer to the source widget host. Alternatively, track whether a drag is currently active on the Mac view using a persistent boolean flag that is only reset when the drag session has explicitly completed (OnDragEnded()).

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.

The original report as published on the Chromium issue tracker. 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.

How it worked

Root cause

Likely the macOS reentrancy guard uses a weak pointer to the source renderer widget, which is cleared when that frame is detached, instead of a persistent flag that stays set for the whole drag session.

Impact

A compromised renderer could steal sensitive cross-origin drag payloads such as selected text, HTML or URLs, resulting in a Site Isolation bypass; the report notes no proof-of-concept was executed.

What the attacker needed

MacOS build of the browser; compromised renderer process; user starts a drag in a victim frame; user drops over attacker frame

The fix

The macOS reentrancy guard should be aligned with the Aura implementation by checking the drag security state, or by using a persistent boolean that is only reset when the drag session ends.

How it was found

  1. An attacker page embeds a cross-origin victim frame and the user starts dragging content inside it.
  2. While the drag is active, the attacker renderer detaches the victim frame, destroying its widget host and clearing the guard pointer.
  3. The attacker renderer sends a second programmatic start-drag request for its own frame.
  4. The guard now evaluates false, so the browser overwrites the stored drag security state with the attacker's group.
  5. The user drops the payload over the attacker frame and the browser delivers the victim's drag data to the attacker.

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 text or a link on a web page, the browser keeps track of which site the drag started from so it is not handed to a different site. Here that bookkeeping could be reset by a malicious page while a drag is in progress, so the browser would hand the dragged content to the wrong site. The report is based on reading the code, not on a working demonstration.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.