Skip to content
Race condition Advisory Advanced CVE-2026-113016

Race condition in Extensions (CVE-2026-113016)

A race condition in the desktop extensions menu allows a site or colluding extension to bypass the origin-matching defence when site permissions are updated. An in-flight user click can land on a rebuilt toggle and grant the extension host access to a new origin without consent.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 race condition in the desktop extensions menu allows a site or a colluding extension to bypass the origin-matching defense when site permissions are updated. When a navigation occurs while the site-permissions sub-page is open, the menu is rebuilt and binds the new post-navigation origin to the site access toggle callbacks. An in-flight user click can then land on the rebuilt toggle, potentially persisting unauthorized site access permissions for the new origin.

Affected files:

  • chrome/browser/ui/views/extensions/extensions_menu_delegate_desktop.cc
  • chrome/browser/ui/views/extensions/extensions_menu_main_page_view.cc
  • chrome/browser/ui/extensions/extensions_menu_view_model.cc
  • extensions/browser/permissions/site_permissions_helper.cc

Estimated timestamp from git blame: 2026-06-11

Summary

A potential race condition in the desktop Extensions Menu allows a site to bypass the expected_origin defense used to protect site access toggle permissions. When same-tab navigation commits while the user has the per-extension site-permissions sub-page open, the menu is rebuilt back to the main page. This rebuild binds the newly committed post-navigation origin to the reconstructed toggle callbacks. Consequently, an in-flight click from the user can land on the rebuilt toggle, bypassing the origin checks and granting the extension unauthorized host access to the new origin.

Note: The following steps and analysis are based on static code review; our automated analysis tooling does not currently have the capability to execute dynamic proof-of-concept tests.

Vulnerability Analysis

In chrome/browser/ui/views/extensions/extensions_menu_delegate_desktop.cc, when a page navigation commits, the handler OnPageNavigation() is invoked:

C++
void ExtensionsMenuDelegateDesktop::OnPageNavigation() {
  DCHECK(current_page_);

  // Update main page if it is open.
  auto* main_page = GetMainPage(current_page_.view());
  if (main_page) {
    UpdateMainPage(main_page);
    return;
  }

  // If the site permissions page is open, navigate back to the main page.
  // This prevents the extension from gaining permissions to a new origin
  // that the user didn't intend to authorize during a race condition.
  auto* site_permissions_page = GetSitePermissionsPage(current_page_.view());
  CHECK(site_permissions_page);
  OpenMainPage();
}

If the main page was open, UpdateMainPage() updates it in place and does not rebind the callbacks. However, if the site-permissions sub-page was open, the delegate calls OpenMainPage(). This destroys the old view and instantiates a brand-new main page view (ExtensionsMenuMainPageView).

During this instantiation, OpenMainPage() -> PopulateMainPage() -> InsertMenuEntry() calls GetMenuEntryState() to construct view models for each extension:

C++
// chrome/browser/ui/extensions/extensions_menu_view_model.cc
entry_state.origin =
    web_contents->GetPrimaryMainFrame()->GetLastCommittedOrigin();

Because the page navigation has already committed, entry_state.origin evaluates to the new post-navigation origin.

The main page view then registers the toggle callback with this post-navigation origin bound by value:

C++
// chrome/browser/ui/views/extensions/extensions_menu_main_page_view.cc
auto item = std::make_unique<ExtensionsMenuEntryView>(
    browser_, entry_state.is_enterprise, action_model,
    base::BindRepeating(&ExtensionsMenuHandler::OnActionButtonClicked, ...),
    base::BindRepeating(&ExtensionsMenuHandler::OnExtensionToggleSelected,
                        base::Unretained(menu_handler_), extension_id,
                        entry_state.origin),     // <-- post-navigation origin bound by value
    base::BindRepeating(&ExtensionsMenuHandler::OpenSitePermissionsPage, ...));

When the user's click (which was aimed at a control on the sub-page) lands on the newly rendered toggle button on the main page, OnExtensionToggleSelected() is executed, calling ExtensionsMenuViewModel::GrantSiteAccess() with the post-navigation origin.

Inside GrantSiteAccess(), the safety check is performed:

C++
// chrome/browser/ui/extensions/extensions_menu_view_model.cc
if (!target_origin.IsSameOriginWith(
        web_contents->GetPrimaryMainFrame()->GetLastCommittedOrigin())) {
  return;
}

Because both target_origin (bound in the recreated callback) and the active web_contents origin are evaluated post-navigation, this check is tautological and evaluates to true. The check in SitePermissionsHelper::UpdateSiteAccess() is defeated in the same manner, allowing the permission modification to succeed.

Additionally, unlike the ExtensionsMenuAllowButton, the views::ToggleButton in ExtensionsMenuEntryView does not carry an InputEventActivationProtector to suppress stale clicks resulting from abrupt layout changes.

Potential Trigger Steps

  1. The user installs an extension with withheld host permissions (e.g. "on click").
  2. The user visits https://attacker.example, opens the extensions menu, and navigates to the extension's site-permissions sub-page.
  3. While the user is about to click a setting on the sub-page, the attacker site triggers a navigation to a victim origin (e.g. https://victim.example).
  4. The navigation commits, and the menu handler rebuilds the main page, binding the toggle to https://victim.example.
  5. The user's in-flight click lands on the newly rendered toggle.
  6. The extension is persistently granted host permissions for https://victim.example without the user's consent or visual acknowledgment.

Suggested Fix

  1. Add Click Protection: Implement a views::InputEventActivationProtector on the site access toggle button inside ExtensionsMenuEntryView to discard input events that occur immediately after layout/view state transitions.
  2. Safer Transition on Navigation: Instead of creating a new main page with a freshly queried post-navigation origin on same-tab navigation, the bubble could either close entirely or retain a reference to the origin that was displayed when the sub-page was opened, validating any subsequent actions against that origin.

Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141


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 menu rebuilds the main page after navigation and binds the new origin to the toggle callback, making the origin check compare the new origin with itself.

Impact

An extension could gain persistent host access to a new origin without the user's consent, though the report is based on static review and no dynamic proof-of-concept was executed.

What the attacker needed

User installs an extension with withheld host permissions; user opens the extensions menu on an attacker site; user navigates to the site-permissions sub-page; attacker triggers a navigation to a victim origin

The fix

The toggle should discard input events immediately after layout changes, and the menu should close or retain the originally displayed origin on navigation instead of rebuilding with the new origin.

How it was found

  1. The user installs an extension with withheld host permissions.
  2. The user visits an attacker site, opens the extensions menu, and goes to the extension's site-permissions sub-page.
  3. The attacker site triggers a navigation to a victim origin while the user is about to click.
  4. The navigation commits and the menu rebuilds the main page, binding the toggle to the victim origin.
  5. The user's in-flight click lands on the newly rendered toggle.
  6. The extension is granted host permissions for the victim origin without consent.

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.

When you change an extension's site access, the browser checks that the page you are on is the same one you meant to change. Here, if the page navigates while the menu is open, the menu is rebuilt and the check compares the new page with itself, so it always passes. A click you aimed at the old menu can then land on the new toggle and give the extension access to the new site.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.