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

Inappropriate implementation in Chrome for iOS (CVE-2026-17828)

A content script that watches for password entry in Chrome for iOS ignores keydown events that carry modifier keys, so a keyboard paste shortcut is never recorded. A malicious page can cancel the keydown event to stop the normal paste event firing, then read the clipboard itself, so the password-reuse warning may not appear.

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: A potential logic bypass in Chrome for iOS allows malicious websites to bypass PhishGuard password-reuse detection during hardware keyboard-based paste actions (e.g., Cmd+V). By calling preventDefault() on the capturing keydown event, a page can suppress the DOM paste event while still reading the clipboard data programmatically. This prevents PhishGuard's listeners from detecting the password insertion, potentially allowing silent credential harvesting.

Affected files:

  • ios/chrome/browser/safe_browsing/model/resources/password_protection.ts
  • ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm
  • ios/chrome/browser/passwords/model/ios_chrome_password_reuse_detection_manager_client.mm

Estimated timestamp from git blame: 2021-02-11

Description & Root Cause

PhishGuard (Safe Browsing password protection) on iOS monitors password reuse by injecting an isolated-world content script (password_protection.ts) that listens to capturing DOM keydown and paste events to report potential password entry to the browser process.

However, a potential logic gap exists during keyboard-initiated paste events (e.g., pressing Cmd+V on an external/iPad hardware keyboard).

In ios/chrome/browser/safe_browsing/model/resources/password_protection.ts, the capturing listener for the keydown event is defined as follows:

TypeScript
function onKeydownEvent(event: KeyboardEvent): void {
  // Only forward events where the entered key has length 1, to avoid
  // forwarding special keys like "Enter".
  if (event.isTrusted && event.key.length === 1 && !event.ctrlKey &&
      !event.metaKey) {
    sendWebKitMessage('PasswordProtectionTextEntered',
        {eventType: 'KeyDown', text: event.key});
  }
}

When a user presses Cmd+V (or Ctrl+V), the keydown event has event.metaKey === true or event.ctrlKey === true. Consequently, onKeydownEvent ignores the event and does not forward any message to the browser process.

Per the W3C UI Events specification, executing a paste operation via a keyboard shortcut dispatches a cancelable keydown event prior to executing the paste command. If a page-level script listens to the capturing keydown event and calls event.preventDefault(), the browser cancels the editing command and the standard paste event is never fired.

Because the isolated-world onKeydownEvent ignores events with modifier keys, it does not record the keydown shortcut. Because preventDefault() is called on the page side, the trusted paste event is canceled, and PhishGuard's onPasteEvent is never triggered. Meanwhile, the page can still programmatically read the copied password from the clipboard via navigator.clipboard.readText(). This completely bypasses PhishGuard's password reuse check.

Note: Our tooling does not currently have the capability to execute and test code live, so these steps and behaviors are analyzed statically and remain potential/theorized based on the source code structure.


Potential Reproduction Steps

  1. Use an iOS device (e.g., iPad with a hardware keyboard) with Safe Browsing enabled and at least one saved password.

  2. Serve a webpage containing a password field and the following script:

    JavaScript
    window.addEventListener('keydown', e => {
      if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'v') {
        e.preventDefault();
        navigator.clipboard.readText().then(text => {
          document.getElementById('password_field').value += text;
          // Perform potential exfiltration of 'text' here
        });
      }
    }, true);
    
  3. Copy a saved password to the clipboard.

  4. Focus the password input on the page and press Cmd+V.

  5. Tapping 'Allow' on the standard iOS paste permission toast will permit the clipboard read operation, and the password will be inserted into the input field. PhishGuard will potentially fail to detect this paste event.


Suggested Fix

To mitigate this potential bypass, the isolated-world script should robustly account for modifier-based paste inputs:

  1. Update onKeydownEvent in password_protection.ts to recognize keyboard paste combinations (e.g., event.key === 'v' or event.key === 'V' with ctrlKey or metaKey modifier flags) and report them to the browser side before any page-level script can cancel them via preventDefault().
  2. Consider analyzing content mutations inside password input fields via the input or beforeinput events. If a significant bulk insertion of text matching a saved password hash occurs, notify the password reuse manager even if a DOM paste event was not explicitly dispatched.

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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 isolated-world keydown listener deliberately skips events with Ctrl or Meta held, so keyboard paste shortcuts are never reported, and the page can cancel the keydown to suppress the paste event entirely.

Impact

A malicious site could insert a reused password without the reuse warning appearing, though the user must still approve the iOS paste permission prompt and the analysis is static and untested.

What the attacker needed

IOS device with hardware keyboard; Safe Browsing enabled; a saved password; victim approves paste prompt

The fix

The isolated-world script should report modifier-based paste shortcuts before page scripts can cancel them, and should also watch input events for bulk insertions matching saved passwords.

How it was found

  1. Use an iOS device with a hardware keyboard, Safe Browsing on and a saved password.
  2. Open a page with a password field and a script that cancels the paste shortcut and reads the clipboard.
  3. Copy a saved password to the clipboard.
  4. Focus the password field and press the paste shortcut.
  5. Allow the iOS paste permission prompt; the password is inserted and the check may not fire.

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.

Chrome has a feature that warns you when you type or paste a password that has already been saved, which can mean a fake site is tricking you. The check works by watching for key presses and paste actions on the page. This report says a page can quietly block the paste signal while still reading what you copied, so the warning may never appear.

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.