Skip to content
Access control Advisory Advanced CVE-2026-113264

Incorrect authorization in Extensions (CVE-2026-113264)

A logic flaw in Chromium's extension permission model allows a same-site cross-origin prerendered page to bypass the click-to-script permission gate. An attacker could trick a user into clicking an extension icon on their page, inadvertently granting script injection into a victim page on a different origin of the same site.

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 logic flaw in ExtensionActionRunner may allow a same-site cross-origin prerendered page to bypass the "click-to-script" permission gate. Because script injection permissions are managed at the WebContents level and checked against the visible URL, a user clicking an extension on an attacker page can inadvertently authorize script injection into a cross-origin prerendered victim page.

Affected files:

  • chrome/browser/extensions/extension_action_runner.cc
  • extensions/renderer/extension_injection_host.cc

Estimated timestamp from git blame: 2026-02-10

Summary

A logic error exists in Chromium's extension permission model where script injection requests are managed per-WebContents but evaluated against the currently visible URL. Under the Multiple Page Architecture (MPArch), a same-site cross-origin prerendered page shares a WebContents with its initiator. An attacker can use this to queue a script injection request from a prerendered victim page, which is then inadvertently authorized when the user clicks the extension action on the attacker's visible page.

Prerequisites

  • An attacker controls a page (e.g., https://evil.example.com).
  • A sensitive victim page exists on the same site but a different origin (e.g., https://login.example.com) and opts into credentialed prerendering via the Supports-Loading-Mode: credentialed-prerender HTTP header.
  • The user has installed an extension that uses "click-to-script" (withheld) site access.

Potential Attack Steps

Note: These steps are based on static code analysis. Our tooling does not yet execute code to provide a working proof-of-concept.

  1. Prerender Initiation: The user visits the attacker's page (evil.example.com). The page uses the Speculation Rules API to initiate a prerender of the victim page (login.example.com). Because the victim returns the credentialed-prerender header, the prerender is allowed.
  2. Shared State: The prerendered victim page is loaded in a separate RenderFrameHost but shares the same WebContents object as the visible attacker page.
  3. Renderer Privilege Check: The extension attempts to inject a content script into the prerendered victim page. In extensions/renderer/extension_injection_host.cc:105-111, the renderer normally blocks hidden subframes from requesting permission. However, because the prerendered page is its own frame tree, IsOutermostMainFrame() returns true. The request is allowed to proceed as kWithheld.
  4. Browser Receives IPC: The renderer sends a RequestScriptInjectionPermission IPC to the browser.
  5. Faulty URL Validation: In chrome/browser/extensions/extension_action_runner.cc:260, RequiresUserConsentForScriptInjection evaluates the permission request against web_contents()->GetVisibleURL(). This checks the attacker's URL instead of the requesting prerendered frame's URL. The request is appended to the pending_scripts_ queue.
  6. User Interaction: The attacker's page convinces the user to click the extension icon in the toolbar.
  7. Indiscriminate Permission Grant: The click triggers ExtensionActionRunner::RunBlockedActions, which grants activeTab permission to the visible origin (evil.example.com). It then calls RunPendingScriptsForExtension.
  8. Flushing the Queue: RunPendingScriptsForExtension indiscriminately executes all pending Mojo callbacks in the WebContents queue with granted = true (chrome/browser/extensions/extension_action_runner.cc:321). It does not verify which frame or origin requested the scripts.
  9. Payload Execution: The victim's renderer receives the granted = true IPC callback (ScriptInjection::HandlePermission). ScriptInjection::Inject runs immediately without re-verifying the local permission state. The script executes within the victim's context, potentially allowing DOM access and data exfiltration.
  10. Activation: The attacker navigates the user to the prerendered page, activating it. The injected script has already compromised the session.

Suggested Fix

  1. Browser-Side Validation: PendingScript (in extension_action_runner.h) should store the origin or RenderFrameHost identifier of the frame that requested the injection. When RunPendingScriptsForExtension is called, it should only execute callbacks for scripts whose requesting frame matches the newly granted permissions (i.e., the visible main frame and its same-origin subframes).
  2. Renderer-Side Hardening: ScriptInjection::Inject (in extensions/renderer/script_injection.cc) should consider re-evaluating CanExecuteOnFrame immediately before injection to ensure permissions are still valid for its specific context, providing defense-in-depth against delayed or improperly routed IPC grants.

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.

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 browser checks the permission request against the visible page's URL instead of the URL of the frame that actually requested the injection, and then grants permission to all pending requests without verifying their origin.

Impact

The injected script could execute in the victim page's context, potentially allowing DOM access and data exfiltration, but the attack requires specific conditions and has not been demonstrated with a working proof-of-concept.

What the attacker needed

Attacker controls a page on the same site; victim page opts into credentialed prerender; user has an extension with click-to-script access; user clicks the extension icon

The fix

The browser should store the requesting frame's origin or identifier and only execute pending scripts for frames that match the newly granted permissions, and the renderer should re-evaluate permissions before injection.

How it was found

  1. The user visits the attacker's page, which uses the Speculation Rules API to prerender a victim page on a different origin of the same site.
  2. The prerendered victim page shares the same WebContents as the attacker's page.
  3. The extension attempts to inject a content script into the prerendered victim page, and the renderer allows the request to proceed as withheld.
  4. The browser receives the permission request and checks it against the visible attacker URL, queuing it as pending.
  5. The attacker convinces the user to click the extension icon, which grants activeTab permission to the attacker's origin and flushes all pending scripts with granted=true.
  6. The victim's renderer receives the granted callback and executes the script without re-verifying permissions, compromising the victim's session.

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 often needs permission to run code on web pages. Some extensions only run when you click their icon, which is a safety feature. This report found a way that a malicious website could trick you into clicking the icon and accidentally give the extension permission to run code on a different, sensitive website you are logged into, like a login page.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.