Race condition in Extensions (CVE-2026-113112)
A race condition in the ActiveTabPermissionGranter allows stale activeTab permissions to be delivered to a renderer after a cross-origin navigation. An attacker could potentially bypass the Same-Origin Policy for extension content scripts on the new origin.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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 race condition in ActiveTabPermissionGranter allows stale activeTab permissions to be delivered to a renderer after a cross-origin navigation. This occurs because the browser process fails to re-verify the grant state after an asynchronous Mojo round-trip to the network service, leading to a permission desync between the browser and renderer.
Affected files:
extensions/browser/permissions/active_tab_permission_granter.ccextensions/renderer/dispatcher.ccchrome/browser/extensions/extension_action_runner.cc
Estimated timestamp from git blame: 2026-04-13
Summary
A potential Time-of-Check Time-of-Use (TOCTOU) vulnerability exists in ActiveTabPermissionGranter. When an extension is granted activeTab permissions, the browser process performs an asynchronous update to the network service before notifying the renderer. If a cross-origin navigation commits during this interval, the permissions are synchronously revoked browser-side, but the delayed notification callback still proceeds to deliver the stale permissions to the new renderer process.
Root Cause Analysis
In ActiveTabPermissionGranter::GrantIfRequested (extensions/browser/permissions/active_tab_permission_granter.cc:134), the browser synchronously records the permission grant and updates the browser-side PermissionsData. It then initiates an asynchronous update to the CORS origin access list via SetCorsOriginAccessList (line 190). The completion callback, ActiveTabPermissionGranter::NotifyGranted (line 202), is triggered only after a Mojo round-trip to the network service.
Between the initiation of the asynchronous call and the execution of NotifyGranted, other UI-thread tasks—specifically a cross-origin navigation—can occur. When a navigation commits, DidFinishNavigation (line 248) calls ClearGrantedExtensionsAndNotify, which clears the browser-side permissions, sends a ClearTabSpecificPermissions message to renderers, and removes the extension from granted_extensions_ (line 343).
When NotifyGranted eventually runs, it performs insufficient validation (lines 207-212). It checks if the extension is enabled and if the tab has a visible entry, but it fails to verify that the extension is still present in granted_extensions_ for that tab. Consequently, it sends an UpdateTabSpecificPermissions message (containing the previous origin's permissions) to the renderer process of the new, cross-origin page (line 230). This message re-installs the stale permissions in the renderer-side PermissionsData and updates Blink's WebSecurityPolicy allowlist.
Potential Impact
While browser-side security checks in PermissionsData (used by APIs like scripting.executeScript) correctly re-verify permissions against the browser's internal state, the renderer-side state becomes corrupted. This leads to several potential security issues:
- Same-Origin Policy (SOP) Bypass: An extension content script running on the new origin can bypass the SOP to access DOM elements of the previous (victim) origin if frames of that origin are still present in the same process. This is particularly relevant on platforms with relaxed Site Isolation, such as Android.
- State Desync: The renderer-side
PermissionsDataincorrectly believes it has host access to the previous origin on the current tab. - Observer Errors: Observers such as
ExtensionActionRunnerare notified of a grant for a page the user did not approve, potentially leading to logic errors in extension UI.
Suggested Reproductions Steps (Potential)
- Install an extension that uses the
activeTabpermission. - Navigate to
https://victim.comand then trigger a navigation tohttps://attacker.com. - During the navigation transition, trigger the extension (e.g., via a toolbar icon click) so
GrantIfRequestedis called forvictim.comjust as the navigation commits. - Observe that the navigation to
attacker.comcompletes, triggering the browser to revoke thevictim.compermissions. - Observe that the delayed
NotifyGrantedexecutes after the revocation, sendingUpdateTabSpecificPermissionsforvictim.comto the renderer hostingattacker.com. - Verify that an extension content script on
attacker.comcan now access frames fromvictim.comvia the DOM.
Recommended Fix
Modify ActiveTabPermissionGranter::NotifyGranted to verify that the extension still has a valid grant before proceeding with the renderer update:
void ActiveTabPermissionGranter::NotifyGranted(
scoped_refptr<const Extension> extension,
URLPatternSet new_hosts) {
...
// Add a check to ensure the extension still has the grant.
if (!IsGranted(extension.get())) {
return;
}
...
}
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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.
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 browser process fails to re-check that the extension still has a valid grant after an asynchronous Mojo round-trip to the network service, so a delayed notification delivers stale permissions to the renderer.
Impact
The renderer-side state becomes corrupted, potentially allowing an extension content script on the new origin to bypass the Same-Origin Policy and access DOM elements of the previous origin, particularly on platforms with relaxed Site Isolation such as Android.
What the attacker needed
An extension using activeTab permission; Victim visits a site then navigates to attacker site; Extension triggered during navigation transition; Relaxed Site Isolation (e.g., Android)
The fix
The fix should add a check in NotifyGranted to verify that the extension still has a valid grant before proceeding with the renderer update.
How it was found
- Install an extension that uses the activeTab permission.
- Navigate to a victim site and then trigger a navigation to an attacker site.
- During the navigation transition, trigger the extension so the grant is requested for the victim site just as the navigation commits.
- Observe that the navigation to the attacker site completes and the browser revokes the victim site permissions.
- Observe that the delayed notification executes after revocation and sends the stale permissions to the renderer hosting the attacker site.
- Verify that an extension content script on the attacker site can access frames from the victim site via the DOM.
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 click an extension's icon, it gets temporary permission to access the current website. This report found a timing bug: if you navigate to a different website at the exact moment the permission is granted, the old permission can be sent to the new page. That could let the extension's code on the new page read data from the old page, which is normally not allowed.
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.