Race condition in Extensions (CVE-2026-113333)
A stale permission prompt for an older extension version can be accepted after the extension auto-updates to a newer version with more permissions, causing the newer version to run with unreviewed permissions. An attacker could publish a benign extension, then update it with extra permissions while it is disabled, and trick the user into accepting the old prompt, granting the new permissions for the session.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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 without the Chrome Security team.
Overview: A potential Time-of-Check Time-of-Use (TOCTOU) vulnerability exists in the extension re-enablement UI. If a disabled extension updates to a version with more permissions, a stale UI prompt for the older version can persist. Accepting this stale prompt activates the newer version with its full, unreviewed permissions.
Affected files:
chrome/browser/extensions/extension_disabled_ui_desktop.ccextensions/browser/extension_registrar.cc
Estimated timestamp from git blame: 2025-02-28
Summary
A potential logic flaw in how Chrome handles extension re-enablement could allow a newer version of an extension to run with unreviewed permissions if it updates while already disabled for a permission increase.
Note: The following behavior is based on static analysis by our tooling agent, which does not currently have the ability to run a live proof-of-concept. Thus, this is described as a potential vulnerability.
Technical Details
When an extension is disabled due to a permission increase (e.g., v1.0.1), an ExtensionDisabledGlobalError is instantiated (chrome/browser/extensions/extension_disabled_ui_desktop.cc). This object stores a scoped_refptr<const Extension> referencing the specific v1.0.1 object and registers itself with the GlobalErrorService.
If the extension auto-updates to v1.1 while disabled, ExtensionRegistrar removes v1.0.1 from the disabled registry and adds v1.1. However, ExtensionDisabledGlobalError only observes OnExtensionLoaded and OnExtensionUninstalled. It does not handle OnExtensionUnloaded during updates. Consequently, the stale error referencing v1.0.1 remains in the GlobalErrorService alongside a newly generated error for v1.1.
When the user clicks the global error menu item, GlobalErrorService returns the earliest registered error (the one for v1.0.1). The UI displays the permissions for v1.0.1. Upon acceptance, ExtensionDisabledGlobalError::BubbleViewAcceptButtonPressed posts a task calling ExtensionRegistrar::GrantPermissionsAndEnableExtension with the stale v1.0.1 scoped_refptr.
GrantPermissionsAndEnableExtension (extensions/browser/extension_registrar.cc) handles this inconsistently:
- It calls
delegate_->GrantActivePermissions(&extension), writing v1.0.1's permissions to the granted preferences. - It then calls
EnableExtension(extension.id()), which looks up the extension by ID from the disabled registry. This retrieves the newer v1.1 object. EnableExtensionunconditionally clears theDISABLE_PERMISSIONS_INCREASEflag and activates v1.1.
Because v1.1's PermissionsData was initialized with its full required permissions during its load, it now runs with elevated privileges that the user never saw or accepted (e.g., <all_urls>). Although it will be re-disabled on the next browser restart (because prefs only hold v1.0.1's permissions), the attacker gains full unreviewed permissions for the current session.
Potential Attacker Steps
- An attacker publishes a benign extension (v1.0) which is installed by the user.
- The attacker publishes v1.0.1, adding a minor permission (e.g.,
storage). Chrome auto-updates, disables the extension, and generates the UI error. - While the extension is disabled, the attacker publishes v1.1, adding a critical permission (e.g.,
<all_urls>). Chrome auto-updates the disabled extension to v1.1. - The user clicks the stale error notification in the Chrome menu and accepts the prompt, reviewing only the
storagepermission. - Chrome activates v1.1, granting it
<all_urls>access.
Suggested Fix
There are a few ways to resolve this state desynchronization:
- Update
ExtensionDisabledGlobalErrorto observeOnExtensionUnloadedand remove itself if the extension is unloaded due to an update (UnloadedExtensionReason::UPDATE). - Change
ExtensionDisabledGlobalErrorto store only theExtensionIdrather than ascoped_refptr, ensuring it always fetches the latest extension object from the registry before displaying the prompt or enabling the extension. - In
ExtensionRegistrar::GrantPermissionsAndEnableExtension, verify that thescoped_refptrpassed matches the current object in the disabled registry before proceeding with enablement.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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.
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
The disabled-extension error object holds a reference to the old extension version and does not listen for unload events during updates, so a stale prompt remains and enabling by ID activates the newer version.
Impact
The newer extension version could run with unreviewed permissions for the current session, but it will be re-disabled on the next browser restart.
What the attacker needed
User installs attacker's extension; extension auto-updates while disabled; user accepts stale prompt
The fix
The report suggests updating the error object to observe unload events, storing only the extension ID, or verifying the extension reference before enabling; it does not state that a fix was applied.
How it was found
- Attacker publishes a benign extension (v1.0) which the user installs.
- Attacker publishes v1.0.1 with a minor added permission; Chrome auto-updates, disables the extension, and shows a prompt.
- While disabled, attacker publishes v1.1 with a critical permission; Chrome auto-updates the disabled extension to v1.1.
- User clicks the stale prompt and accepts, seeing only the minor permission.
- Chrome activates v1.1 with the critical permission.
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 install a browser extension, it can ask for permissions. If it later asks for more, the browser disables it and shows a prompt. This report says that if the extension updates again while disabled, the old prompt can still be shown and accepted, but the new version with more permissions gets enabled. So you might approve one small permission but actually give the extension much more access.
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.