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

Incorrect authorization in Editing (CVE-2026-79023)

The user-dictionary-leaks mitigation in Blink can be bypassed because programmatic edit commands without user activation are stored in the UndoStack and later spellchecked when a legitimate user click triggers HotModeInvocation. This allows a malicious page to pre-seed candidate words and exfiltrate dictionary contents via side channels.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: The user-dictionary-leaks mitigation in Blink is designed to prevent malicious websites from programmatically querying the user's custom spellcheck dictionary by gating idle spellchecking behind transient user activation. However, this mitigation can potentially be bypassed because programmatic edit commands executed without a user gesture are stored in the frame's UndoStack and subsequently spellchecked during a future HotModeInvocation triggered by a single legitimate user click. This allows a malicious page to pre-seed the UndoStack with candidate words and exfiltrate dictionary contents once the user interacts with the page.

Affected files:

  • third_party/blink/renderer/core/editing/spellcheck/idle_spell_check_controller.cc
  • third_party/blink/renderer/core/editing/spellcheck/idle_spell_check_controller.h
  • third_party/blink/renderer/core/editing/spellcheck/hot_mode_spell_check_requester.cc

Estimated timestamp from git blame: 2025-10-23

Root Cause

In third_party/blink/renderer/core/editing/spellcheck/idle_spell_check_controller.cc, the user-dictionary-leaks mitigation is implemented by checking for transient user activation before scheduling a hot-mode spellcheck. If LocalFrame::HasTransientUserActivation returns false during a content change, the controller is deactivated via Deactivate():

C++
void IdleSpellCheckController::RespondToChangedContents() {
  if (!IsSpellCheckingEnabled()) {
    Deactivate();
    return;
  }
  if (!LocalFrame::HasTransientUserActivation(GetWindow().GetFrame()) &&
      !base::FeatureList::IsEnabled(
          features::kUnrestrictSpellingAndGrammarForTesting)) {
    Deactivate();
    return;
  }
  ...
}

However, programmatic edit commands (such as document.execCommand('insertHTML', ...)) still successfully create and register UndoSteps in the frame's shared UndoStack (via UndoStack::RegisterUndoStep()). When Deactivate() is called on the controller, the watermark last_processed_undo_step_sequence_ is not updated or advanced, leaving it at 0.

Once the user later performs a legitimate click or interaction anywhere on the page, the frame is granted transient user activation. The next selection or content change event passes the user-gesture check and triggers HotModeInvocation(). During this invocation, the controller loops through all historical steps in the UndoStack:

C++
  const uint64_t watermark = last_processed_undo_step_sequence_;
  for (const UndoStep* step :
       GetWindow().GetFrame()->GetEditor().GetUndoStack().UndoSteps()) {
    if (step->SequenceNumber() <= watermark)
      break;
    last_processed_undo_step_sequence_ =
        std::max(step->SequenceNumber(), last_processed_undo_step_sequence_);
    if (deadline->timeRemaining() == 0)
      break;
    if (!step->EndingSelection().IsValidFor(GetDocument()))
      continue;
    requester.CheckSpellingAt(step->EndingSelection().Focus());
  }

Because the watermark is still at 0 (or its previous value before deactivation), any programmatic UndoSteps generated while the controller was deactivated have sequence numbers greater than the watermark. As a result, the loop sweeps up and spellchecks these programmatic edits via requester.CheckSpellingAt() without any further user gesture or transient activation validation.

Potential Attack Scenario

(Note: These are potential steps as our tooling agent does not have the capability to execute code in a live environment)

  1. Pre-seeding: A malicious webpage programmatically focuses a hidden <div contenteditable spellcheck="true"> element and executes document.execCommand('insertHTML', false, 'probe_word') to insert various candidate words. This populates the UndoStack with multiple historical edit steps while keeping the watermark last_processed_undo_step_sequence_ at 0.
  2. User Interaction: The page induces the user to perform a single click anywhere on the page (e.g., clicking a decoy button or a generic area), granting the frame transient user activation.
  3. Bypass Trigger: The user gesture schedules HotModeInvocation(), which iterates through the UndoStack and triggers spellchecking for all of the pre-seeded candidate words.
  4. Exfiltration: The page detects which words were flagged as correct (present in the user's custom dictionary) by observing rendering or timing side channels (e.g., measuring delayed repaint frames using requestAnimationFrame() for misspelled words, or measuring CPU suggestion-generation delays using performance.now()).

Suggested Fix

To remediate this issue, the controller should prevent processing any historical UndoSteps that were registered when there was no active transient user activation. This can be resolved by updating the watermark last_processed_undo_step_sequence_ to the latest step's sequence number whenever the controller is deactivated or whenever an edit command is registered without user activation. Alternatively, we can record the transient user activation state at the time of UndoStep registration and only perform spellchecking on steps that had a valid user activation.

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 controller's watermark is not advanced when deactivated, so programmatic UndoSteps created without user activation are later processed during HotModeInvocation.

What the attacker needed

Victim visits malicious page; victim clicks on the page; browser uses Blink spellcheck

The fix

The controller should update the watermark to the latest step's sequence number when deactivated or when an edit command is registered without user activation, or record activation state at UndoStep registration and only spellcheck steps with valid activation.

How it was found

  1. A malicious webpage focuses a hidden contenteditable element and inserts candidate words via document.execCommand, populating the UndoStack.
  2. The page induces the user to click anywhere, granting transient user activation.
  3. The user gesture triggers HotModeInvocation, which iterates the UndoStack and spellchecks the pre-seeded words.
  4. The page detects which words are in the user's dictionary via timing or rendering side channels.

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.

Websites can try to guess which words are in your personal spellcheck dictionary. Chrome tries to stop this by only checking spelling after you click. But a bug lets a malicious site sneak words into a hidden text box, and when you click, Chrome checks those words, letting the site learn your dictionary.

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.