Skip to content
Access control Advisory Advanced CVE-2026-10938

Insufficient validation of untrusted input in Input (CVE-2026-10938)

A logic flaw in the browser's input targeting code could let a compromised renderer route mouse clicks to a previously middle-clicked cross-origin frame without translating coordinates. This could allow cross-origin input injection and bypass Site Isolation.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 50 days

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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.

Overview: A logic flaw in RenderWidgetTargeter could potentially allow a compromised renderer to bypass Site Isolation by forcing the browser to route input events to a previously middle-clicked cross-origin frame. By triggering an autoscroll state via Mojo, the attacker can spoof event coordinates, leading to precise cross-origin input injection.

Affected files:

  • components/input/render_widget_targeter.cc
  • components/input/render_widget_targeter.h

Estimated timestamp from git blame: 2020-04-03

Summary

A potential logic vulnerability exists in RenderWidgetTargeter that could allow a compromised renderer process to perform cross-origin input injection, bypassing Site Isolation. By manipulating the global autoscroll state and exploiting a stale target cache, an attacker could force the browser to route mouse events (such as clicks) to an arbitrary cross-origin RenderWidgetHostViewInput that was previously middle-clicked by the user, while also spoofing the coordinates of these events.

Technical Details

The RenderWidgetTargeter class manages input event targeting within a WebContents. To support middle-click autoscrolling, it caches the initial middle-click target in the middle_click_result_ member and uses a flag is_autoscroll_in_progress_ to determine when to use this cached target.

Three key conditions combine to create this potential vulnerability:

  1. Stale Target Cache: When a user middle-clicks a view, it is stored in middle_click_result_ (components/input/render_widget_targeter.cc). When autoscroll ends (or if it never started but the user middle-clicked), the cache is only cleared under specific conditions. If an attacker triggers SetIsAutoScrollInProgress(true), the code specifically does not clear the cache (it only clears it on false).

  2. Mojo-Triggered Autoscroll State: A compromised renderer can invoke AutoscrollStart via the blink.mojom.WidgetHost Mojo interface. This sets is_autoscroll_in_progress_ = true globally for the RenderWidgetTargeter associated with the tab.

  3. Coordinate Transformation Failure: In RenderWidgetTargeter::ResolveTargetingRequest, when is_autoscroll_in_progress_ is true, the code bypasses standard hit-testing and resolves the target to the cached middle_click_result_. Crucially, it fails to transform the event's coordinates from the root view's space to the target view's space:

    C++
    if (is_autoscroll_in_progress_) {
      result.target_location = request_target_location;
    }
    

    Because request_target_location holds the root view's coordinates, assigning it directly to result.target_location dispatches the event to the cross-origin target view using the root view's coordinate space.

Potential Exploitation Steps

Note: Our tooling agent does not have the ability to run code, so these are potential steps an attacker would follow.

  1. An attacker compromises a renderer process (e.g., via a separate V8 vulnerability).
  2. The compromised renderer hosts a page that embeds a sensitive cross-origin iframe (e.g., an account management page).
  3. The attacker tricks the user into middle-clicking anywhere on the cross-origin iframe (e.g., using a transparent overlay or a fake button). This populates the browser-side middle_click_result_ cache with the iframe's RenderWidgetHostViewInput.
  4. The compromised renderer sends an AutoscrollStart IPC message via Mojo to the browser process, setting is_autoscroll_in_progress_ to true.
  5. The attacker tricks the user into left-clicking at a specific coordinate (X, Y) relative to the main window. This coordinate corresponds to the location of a sensitive element (like a "Delete Account" button) in the iframe's local coordinate space.
  6. The browser routes the left-click. Because is_autoscroll_in_progress_ is true, it bypasses hit-testing, pulls the iframe from middle_click_result_, and forwards the click using the raw (X, Y) coordinates without translating them.
  7. The cross-origin iframe registers a click on the sensitive element, bypassing Site Isolation protections.

Suggested Fix

  1. State Validation: Ensure that RenderWidgetTargeter::SetIsAutoScrollInProgress(true) validates that a valid middle-click autoscroll sequence is genuinely active (e.g., initiated by the browser handling a middle click, rather than blindly trusting the renderer's Mojo message).
  2. Coordinate Transformation: In RenderWidgetTargeter::ResolveTargetingRequest, ensure that if a cached target is used, request_target_location is properly transformed into the target view's coordinate space using delegate_->FindTargetSynchronouslyAtPoint or similar coordinate-mapping utilities, rather than directly copying the root coordinates.

Evaluated with Chrome root at commit: c0eb5541aebfa4ea08806eaf6e94bcc69f87ab2f


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.

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 autoscroll path trusts a renderer-supplied Mojo message to set a global flag, then reuses a cached middle-click target and copies root-view coordinates without transforming them into the target view's space.

Impact

A compromised renderer could inject clicks into a cross-origin frame and bypass Site Isolation, though the report is explicitly potential and unverified.

What the attacker needed

Compromised renderer process; victim middle-clicks a cross-origin iframe; victim left-clicks a chosen coordinate

The fix

The autoscroll state should be validated as genuinely browser-initiated, and cached targets should have coordinates transformed into the target view's space.

How it was found

  1. Compromise a renderer process, for example through a separate V8 bug.
  2. Host a page that embeds a sensitive cross-origin iframe.
  3. Trick the user into middle-clicking on the cross-origin iframe so the browser caches it as the middle-click target.
  4. Send an AutoscrollStart message over Mojo to set the autoscroll flag to true.
  5. Trick the user into left-clicking at a coordinate matching a sensitive element in the iframe.
  6. The browser routes the click to the cached iframe using untransformed root coordinates.

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.

A browser keeps each website in its own separate sandbox so one site cannot reach into another. This report suggests a bug where, if one site is already broken into, it could trick the browser into sending a user's click to a different site's page. That would let the attacker press buttons on another site, such as an account page.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.