Skip to content
UI spoofing Advisory Advanced CVE-2026-11666

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

The EditContext API did not clamp the bounds supplied by web content, so a malicious page could position an OS-native IME candidate window outside the web content area and over browser UI such as the Omnibox. This could enable UI spoofing, particularly for users of CJK input methods.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 23 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: The EditContext API potentially allows malicious web content to position OS-native IME candidate windows outside the visible web content area. Due to a lack of bounds clamping in both the renderer and browser processes, these coordinates can be used to overlay IME windows on browser UI components such as the Omnibox. This enables high-fidelity UI spoofing attacks, particularly for users of CJK Input Method Editors.

Affected files:

  • content/browser/renderer_host/text_input_manager.cc
  • third_party/blink/renderer/core/editing/ime/edit_context.cc
  • content/browser/renderer_host/render_widget_host_view_aura.cc
  • ui/base/ime/win/tsf_text_store.cc
  • ui/base/ime/ash/input_method_ash.cc
  • ui/base/ime/linux/input_method_auralinux.cc
  • ui/base/ime/win/input_method_win_base.cc
  • third_party/blink/renderer/platform/widget/widget_base.cc
  • content/browser/renderer_host/render_widget_host_impl.cc
  • ui/gfx/geometry/mojom/geometry_mojom_traits.h
  • third_party/blink/renderer/core/frame/web_frame_widget_impl.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential security issue has been identified in the implementation of the EditContext API (shipped by default since Chrome 121). The API allows web developers to specify the layout bounds of a text editing area to help the OS position IME (Input Method Editor) candidate windows correctly. However, these bounds are not properly validated or clamped to the visible viewport of the web content. As a result, a malicious site or a compromised renderer can specify coordinates that cause the OS-rendered IME window to appear over privileged browser UI.

Technical Analysis

The vulnerability stems from a lack of bounds checking throughout the coordinate propagation pipeline:

  1. Blink Layer: In third_party/blink/renderer/core/editing/ime/edit_context.cc, the updateControlBounds and updateSelectionBounds methods accept DOMRect objects from JavaScript. The coordinates are only passed through ClampToWithNaNTo0, which handles non-finite values but permits arbitrary negative or out-of-bounds offsets.
  2. IPC Layer: The bounds are sent to the browser process via the ui.mojom.TextInputState struct. The Mojom traits for gfx::Rect (in ui/gfx/geometry/mojom/geometry_mojom_traits.h) only verify that the width and height are non-negative, allowing arbitrary origin coordinates to pass through.
  3. Browser Process: RenderWidgetHostImpl receives the state and caches it in the TextInputManager. In content/browser/renderer_host/text_input_manager.cc, the GetTextControlBounds method transforms the origin to the root coordinate space but preserves the renderer-supplied size without intersecting it with the visible view bounds.
  4. OS Sinks: In content/browser/renderer_host/render_widget_host_view_aura.cc, the ConvertRectToScreen method converts these root-relative coordinates into screen space by adding the window's screen offset. These final screen coordinates are then passed to OS-native IME APIs, such as Windows Text Services Framework (TSF), ChromeOS Ash, or Linux IBus.

Because the browser does not enforce that these windows remain within the content area, an attacker can position an OS-native window (which can contain attacker-controlled text via the IME composition string) over the Omnibox or permission prompts.

Potential Reproduction Steps

Note: These are suggested steps based on code analysis; a functional proof-of-concept has not yet been executed.

  1. On a system with an active IME (e.g., Japanese MS-IME on Windows), navigate to a page that creates an EditContext:
    JavaScript
    const ec = new EditContext();
    const div = document.createElement('div');
    div.editContext = ec;
    document.body.appendChild(div);
    div.focus();
    // Position the bounds to target the omnibox region (e.g., negative Y offset)
    ec.updateSelectionBounds(new DOMRect(0, -80, 200, 20));
    ec.updateControlBounds(new DOMRect(0, -80, 800, 40));
    
  2. Begin typing with the IME active so that a candidate window appears.
  3. Observe whether the IME candidate window appears outside the web content area, potentially overlapping the browser's toolbar or omnibox.

Impact

This constitutes a UI spoofing vulnerability (Severity: Medium). An attacker can overlay primary browser UI with an OS-native window. This could be used to trick users into entering sensitive information or misinterpreting the security state of the browser.

Suggested Fix

Bounds validation should be implemented in the browser process. Specifically, in content/browser/renderer_host/text_input_manager.cc or the respective RenderWidgetHostView implementations, the bounds retrieved from the renderer should be intersected with the visible bounds of the RenderWidgetHostView before being converted to screen coordinates or passed to OS-native IME APIs.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 browser process never intersected the renderer-supplied IME bounds with the visible view bounds before converting them to screen coordinates and passing them to OS-native IME APIs.

Impact

An attacker could overlay primary browser UI with an OS-native window, which could be used to trick users into entering sensitive information or misinterpreting the browser's security state; the report rates this as medium severity and notes that no functional proof-of-concept had been executed.

What the attacker needed

An active IME, such as a CJK input method; victim visits a malicious page; victim types with the IME active

The fix

Bounds validation should be added in the browser process so that renderer-supplied bounds are intersected with the visible bounds of the RenderWidgetHostView before being converted to screen coordinates or passed to OS-native IME APIs.

How it was found

  1. On a system with an active IME, open a page that creates an EditContext and focuses an element using it.
  2. Call the EditContext bounds update methods with coordinates that target the Omnibox region, such as a negative vertical offset.
  3. Start typing with the IME active so that a candidate window appears.
  4. Observe whether the candidate window appears outside the web content area and overlaps browser UI.

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.

An input method editor (IME) is software that helps people type languages such as Japanese or Chinese, and it shows a small candidate window near the text being typed. The browser lets a web page tell it where that text is, but it did not check that the position stayed inside the page. A malicious site could therefore make the candidate window appear on top of browser controls, which could trick someone into trusting it.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.