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

Insufficient policy enforcement in History (CVE-2026-11309)

The Navigation API's focus reset logic hardcodes a user-gesture focus trigger, so a cross-origin iframe without the focus-without-user-activation policy can move focus to its own autofocus element. An attacker could steal focus from the parent page without any user interaction.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 39 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: When handling a navigate event with an empty intercept handler, the Navigation API potentially resets focus to an autofocus element. However, it hardcodes FocusTrigger::kUserGesture, bypassing the focus-without-user-activation permissions policy and enabling focus stealing by cross-origin iframes without user interaction.

Affected files:

  • third_party/blink/renderer/core/navigation_api/navigate_event.cc

Estimated timestamp from git blame: 2023-08-22

Description

A logic flaw exists in the Navigation API's focus reset behavior that allows cross-origin iframes to bypass the focus-without-user-activation permissions policy.

When a script intercepts a navigation event (e.g., via navigation.onnavigate = e => e.intercept()), the Navigation API waits for the intercept handler's promises to settle. Once settled, NavigateEvent::PotentiallyResetTheFocus() is invoked to manage focus transitions.

In third_party/blink/renderer/core/navigation_api/navigate_event.cc, if an autofocus delegate element is present, the function explicitly requests focus using a hardcoded FocusTrigger::kUserGesture:

C++
  if (Element* focus_delegate = document->GetAutofocusDelegate()) {
    focus_delegate->Focus(FocusParams(FocusTrigger::kUserGesture));
  } else {
    // ...
  }

This misclassification is problematic because it bypasses the Document::IsFocusAllowed() security checks (in third_party/blink/renderer/core/dom/document.cc). IsFocusAllowed() explicitly permits any focus request flagged with kUserGesture and skips the permissions policy checks against network::mojom::PermissionsPolicyFeature::kFocusWithoutUserActivation. Consequently, a cross-origin iframe can steal focus from the parent document entirely via script, without requiring transient user activation or the appropriate permissions policy.

Potential Reproduction Steps

  1. Run Chrome with --enable-features=BlockingFocusWithoutUserActivation (or ensure the feature is enabled via an Origin Trial or standard rollout).
  2. Create a main page (Origin A) that embeds an iframe from Origin B.
  3. Ensure the iframe at Origin B does not have the focus-without-user-activation permissions policy granted.
  4. Inside the iframe (Origin B), insert an element with the autofocus attribute (e.g., <input autofocus>).
  5. In the iframe, register a navigation listener that intercepts the navigation with an empty async handler: navigation.onnavigate = e => e.intercept({handler: async()=>{}});.
  6. Trigger a same-document navigation within the iframe via script: navigation.navigate('#test');.
  7. The navigation is intercepted, the promise resolves immediately, and PotentiallyResetTheFocus() is called.
  8. Due to the hardcoded kUserGesture, the iframe successfully pulls focus to its input element, stealing focus from the parent document without user interaction.

Note: These are potential steps based on code analysis; a working proof-of-concept has not been verified in a live environment.

Suggested Fix

NavigateEvent::PotentiallyResetTheFocus() should not unconditionally use FocusTrigger::kUserGesture. Instead, it should determine the trigger based on whether the navigation itself was user-initiated.

The NavigateEvent object possesses a user_initiated_ boolean. The focus call should be updated to use FocusTrigger::kUserGesture only if user_initiated_ is true, and fall back to FocusTrigger::kScript otherwise. Additionally, ensuring that the correct initiator context is provided in the FocusParams might be necessary to enforce the policy against the correct originating frame.

Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f


Results 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 focus reset after an intercepted navigation always passes a user-gesture focus trigger instead of deriving it from whether the navigation was user-initiated, so the permissions policy check is skipped.

Impact

A cross-origin iframe could steal focus from the parent document without user interaction, though the report notes the steps are unverified and depend on the focus-blocking feature being enabled.

What the attacker needed

Focus-blocking feature enabled; attacker page embedded as cross-origin iframe; no focus-without-user-activation policy

The fix

The focus call should use the user-gesture trigger only when the navigation was user-initiated and otherwise use a script trigger, with the correct initiator context passed in.

How it was found

  1. Run Chrome with the focus-blocking feature enabled.
  2. Create a main page on one origin that embeds an iframe from another origin.
  3. Make sure the iframe is not granted the focus-without-user-activation policy.
  4. Add an autofocus element inside the iframe.
  5. Register a navigation listener in the iframe that intercepts with an empty async handler.
  6. Trigger a same-document navigation in the iframe via script and observe focus move to the iframe.

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.

Browsers normally stop a page from grabbing keyboard focus unless the user has just clicked or typed, because focus stealing can trick people into typing into the wrong place. Here a browser feature that restores focus after a navigation was marked as if the user had acted, even when they had not. That let an embedded page from another site pull focus away from the page around 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.