Skip to content
Info disclosure Advisory Advanced CVE-2026-17966

Inappropriate implementation in Views (CVE-2026-17966)

On macOS, the Views text input bridge decides whether to give an input method editor (IME) access to a text field by looking only at the raw field type, ignoring the flag that marks a field as having held a password. When a user reveals a saved password or a WebAuthn PIN with the eye toggle, an active third-party IME could therefore query and log the plaintext credential.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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, TextInputHost::HasInputContext queries the raw text input type and ignores the TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD security flag. Consequently, when a password or GPM PIN field is toggled to a visible state, active third-party Input Method Editors (IMEs) can access and potentially log the plaintext credential. This bypasses the platform defense-in-depth protection implemented on Windows, Linux, and ChromeOS.

Affected files:

  • ui/views/cocoa/text_input_host.mm

Estimated timestamp from git blame: 2023-04-20

Root Cause Analysis

The TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD flag was introduced as a defense-in-depth measure to prevent revealed passwords and PINs from being exposed to Input Method Editors (IMEs). On platforms utilizing InputMethodBase, InputMethodBase::GetTextInputType() correctly coerces the returned text type back to TEXT_INPUT_TYPE_PASSWORD when this flag is present to suppress active IMEs.

However, the macOS Views NSTextInputClient bridge does not route through InputMethodBase. Instead, TextInputHost::HasInputContext (in ui/views/cocoa/text_input_host.mm) reads the raw client type directly without querying text input flags:

C++
switch (pending_text_input_client_->GetTextInputType()) {
  case ui::TEXT_INPUT_TYPE_NONE:
  case ui::TEXT_INPUT_TYPE_PASSWORD:
    return true;
  default:
    *out_has_input_context = true;
}

Because the raw client type is returned as TEXT_INPUT_TYPE_TEXT once the credential is eye-toggled/revealed, the IME remains fully active and can query the contents of the textfield. Furthermore, Textfield::ImeEditingAllowed() in ui/views/controls/textfield/textfield.cc only checks the raw type, allowing the IME to query and learn the plaintext credential.

Affected Components

This potential security gap renders the toggle-reveal protection ineffective on macOS in the following views:

  1. Save/Update Password Bubble: EditablePasswordCombobox (via PasswordSaveUpdateView in chrome/browser/ui/views/passwords/password_save_update_view.cc).
  2. WebAuthn GPM PIN Sheet: AuthenticatorGPMArbitraryPinView (in chrome/browser/ui/views/webauthn/authenticator_gpm_arbitrary_pin_view.cc).

Potential Trigger Path

Note: These are potential steps based on static analysis; our tooling does not currently support code execution or verification on live systems.

  1. A macOS user with an active third-party IME opens the Save Password bubble or the WebAuthn GPM PIN view.
  2. The user clicks the eye icon to reveal the password or PIN. This toggles the textfield type to TEXT_INPUT_TYPE_TEXT and appends TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD to the input flags.
  3. The user focuses the revealed textfield. AppKit queries -[BridgedContentView inputContext], which calls TextInputHost::HasInputContext.
  4. HasInputContext retrieves TEXT_INPUT_TYPE_TEXT as the raw type, and sets out_has_input_context = true.
  5. Because a non-nil NSTextInputContext is returned, the active third-party IME queries text via standard NSTextInputClient protocols (e.g., -attributedSubstringForProposedRange:actualRange:).
  6. Since Textfield::ImeEditingAllowed() only checks the raw type, it allows the IME to query and read the plaintext credential.

Suggested Fix

  1. Update TextInputHost::HasInputContext in ui/views/cocoa/text_input_host.mm to check the client's text input flags:
C++
ui::TextInputType type = pending_text_input_client_->GetTextInputType();
if (pending_text_input_client_->GetTextInputFlags() &
    ui::TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD) {
  type = ui::TEXT_INPUT_TYPE_PASSWORD;
}

switch (type) {
  case ui::TEXT_INPUT_TYPE_NONE:
  case ui::TEXT_INPUT_TYPE_PASSWORD:
    return true;
  default:
    *out_has_input_context = true;
}
  1. Update Textfield::ImeEditingAllowed in ui/views/controls/textfield/textfield.cc to check for this flag as well:
C++
bool Textfield::ImeEditingAllowed() const {
  if (GetTextInputFlags() & ui::TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD) {
    return false;
  }
  ui::TextInputType t = GetTextInputType();
  return (t != ui::TEXT_INPUT_TYPE_NONE && t != ui::TEXT_INPUT_TYPE_PASSWORD);
}

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 text input bridge reads the raw text input type and never checks the TEXT_INPUT_FLAG_HAS_BEEN_PASSWORD flag, unlike the shared InputMethodBase path which coerces the type back to password.

Impact

A third-party IME on macOS could read and log a revealed saved password or GPM PIN, defeating a defence-in-depth measure that exists on other platforms; the report is based on static analysis and was not verified on a live system.

What the attacker needed

MacOS; a third-party IME is installed and active; user reveals the password or PIN

The fix

The bridge should coerce the type back to password when the password flag is set, and the text field's editing-allowed check should also refuse when that flag is present.

How it was found

  1. A macOS user with an active third-party IME opens the Save Password bubble or the WebAuthn GPM PIN view.
  2. The user clicks the eye icon to reveal the password or PIN, which switches the field type to plain text and sets the password flag.
  3. The user focuses the revealed field, so the system asks the bridged view for its input context.
  4. The bridge sees the plain text type and reports that an input context exists.
  5. The active IME then queries the field contents through the standard text input client methods.
  6. The editing-allowed check only looks at the raw type, so the IME can read the plaintext credential.

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 is the helper program that lets you type characters not on your keyboard, for example Chinese or Japanese input, and it needs to read the text field to work. Chrome normally tells such programs to stay away from password boxes, and it keeps doing so even after you click the eye icon to show the password. On macOS this report says that protection is skipped, so a malicious or curious input program could read the password once it is shown on screen.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.