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

Missing authorization in IME (CVE-2026-113018)

The browser's text input manager did not check whether the renderer sending a text input state change actually held frame focus, so a compromised cross-origin iframe could redirect IME composition events to itself. This could let an attacker steal sensitive input such as passwords typed into another origin.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 7 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in TextInputManager allows a compromised cross-origin renderer to hijack the active text input view by spoofing WidgetHost.TextInputStateChanged IPCs. Because the browser does not verify if the sender actually holds frame focus, IME composition events (like dictation or CJK input) are misrouted to the attacker. This potentially allows an attacker to steal sensitive user input, such as passwords, across origin boundaries.

Affected files:

  • content/browser/renderer_host/text_input_manager.cc
  • content/browser/renderer_host/render_widget_host_view_aura.cc
  • content/browser/renderer_host/render_widget_host_view_mac.mm
  • content/browser/renderer_host/render_widget_host_impl.cc

Estimated timestamp from git blame: 2020-08-05

Summary

A potential vulnerability in TextInputManager::UpdateTextInputState allows a compromised renderer (such as an out-of-process iframe) to hijack the active_view_ pointer. This leads to the cross-origin theft of IME-composed keystrokes, completely bypassing Site Isolation.

While the browser correctly tracks focus for raw keyboard events, it relies on an unvalidated state update for routing IME-specific operations like text commitment and composition updates.

Technical Details

In content/browser/renderer_host/text_input_manager.cc, the method UpdateTextInputState is responsible for updating the active_view_. This view determines which renderer receives IME output from the OS. The logic currently assigns active_view_ to any RenderWidgetHostView that sends a WidgetHost.TextInputStateChanged IPC with a text input type other than NONE:

C++
// content/browser/renderer_host/text_input_manager.cc
if (text_input_state.type != ui::TEXT_INPUT_TYPE_NONE &&
    active_view_ != view) {
  if (active_view_) {
    // ... resets previous active_view_ state ...
  }
  active_view_ = view;
}

There is no cross-check against the browser's actual focus state (e.g., via FrameTree or WebContentsImpl::GetFocusedRenderWidgetHost()). Consequently, a compromised cross-origin OOPIF (Out-of-Process iframe) can repeatedly send spoofed TextInputStateChanged IPCs to hijack active_view_ while the user is actively interacting with a focused frame on a different origin.

Subsequent IME operations—such as InsertText (which triggers ImeCommitText), SetCompositionText, and ConfirmCompositionText—route their events through TextInputManager::GetActiveWidget(). On platforms using Aura (Windows, Linux, ChromeOS) and macOS, these events are misrouted from the top-level view (like RenderWidgetHostViewAura) to the attacker's renderer.

This behavior contrasts with raw key events and other operations like ExtendSelectionAndDelete, which correctly verify focus and are therefore not susceptible to this hijack.

Impact

This is a potential Site Isolation bypass that allows a compromised renderer to steal user input from other origins. The impact is specifically high for users of CJK Input Method Editors (IMEs), dead-key accents, dictation, and on-screen keyboards, where input is buffered and committed via the affected code paths.

Suggested Reproduction Steps

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

  1. Navigate to a legitimate page on Origin A containing a sensitive input field (e.g., a password field) and embed a cross-origin iframe from Origin B.
  2. Compromise the Origin B renderer process.
  3. Have the compromised Origin B renderer periodically send blink.mojom.WidgetHost.TextInputStateChanged Mojo IPCs with state.type = TEXT_INPUT_TYPE_TEXT.
  4. As a user, focus the input field on Origin A and begin typing using an IME (e.g., Japanese IME or Windows Dictation).
  5. Observe in the browser process that TextInputManager::active_view_ is pointed to Origin B's view even though Origin A's frame remains focused.
  6. The OS IME composition events (e.g., RenderWidgetHostViewAura::InsertText) will retrieve the active widget via text_input_manager_->GetActiveWidget().
  7. RenderWidgetHostImpl::ImeCommitText will send the composed text via IPC to Origin B's renderer, where the attacker can exfiltrate it.

Suggested Fix

TextInputManager::UpdateTextInputState (or the callers in RenderWidgetHostImpl/RenderWidgetHostViewBase) must validate that the RenderWidgetHostViewBase sending the IPC corresponds to the currently focused frame before updating active_view_. This can be achieved by checking against WebContentsImpl::GetFocusedRenderWidgetHost() or verifying the focus state within the FrameTree. If a background or unfocused frame sends a TextInputStateChanged IPC with a non-NONE type, the browser should either ignore the update to active_view_ or terminate the misbehaving renderer.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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 browser trusted the renderer's text input state update without verifying that the sending frame had focus.

Impact

This is a potential Site Isolation bypass that could allow a compromised renderer to steal user input from other origins, with higher impact for users of CJK IMEs, dead-key accents, dictation, and on-screen keyboards.

What the attacker needed

Victim visits a page with a cross-origin iframe; attacker compromises the iframe renderer; victim uses an IME or dictation

The fix

The browser should validate that the renderer sending the text input state change corresponds to the currently focused frame before updating the active view, and ignore or terminate misbehaving renderers.

How it was found

  1. Open a page on one origin that has a sensitive input field and embeds an iframe from another origin.
  2. Compromise the renderer process of the embedded cross-origin iframe.
  3. Have the compromised renderer repeatedly send text input state change messages claiming a text input type.
  4. Focus the sensitive input field on the main page and type using an IME or dictation.
  5. Observe that the browser's active input view points to the attacker's frame even though the main page remains focused.
  6. The composed text is sent to the attacker's renderer, which can exfiltrate it.

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 type with an input method editor (IME), such as for Japanese or Chinese, the operating system sends the finished text to the browser, which forwards it to the page you are typing in. The browser decided where to send that text based on a message from the page's code, without checking that the page was actually the one you had clicked into. A malicious page could therefore claim to be the active input target and receive what you typed on a different site.

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.