Skip to content
Access control Advisory Intermediate CVE-2026-113129

Incorrect authorization in Extensions (CVE-2026-113129)

A logic flaw in how hardware media keys are handled allows extensions to obtain the activeTab permission without a directed user gesture. A malicious extension can register a media key, and when the user presses it, the extension gains host access to the active tab and can exfiltrate data.

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: Hardware media key presses automatically grant the activeTab permission to all extensions registered for that key. Because media keys are auto-assigned and non-exclusive, malicious extensions can obtain host access to sensitive foreground tabs without any directed user interaction.

Affected files:

  • chrome/browser/extensions/extension_keybinding_registry.cc
  • chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc
  • chrome/browser/ui/browser_window/internal/browser_window_features.cc
  • chrome/browser/extensions/commands/command_service.cc
  • extensions/browser/permissions/active_tab_permission_granter.cc
  • extensions/common/command.cc

Estimated timestamp from git blame: 2026-03-05

The activeTab permission is designed to provide temporary host access to an extension only when the user explicitly invokes it (e.g., by clicking its toolbar icon or using a specific, user-configured keyboard shortcut). This ensures that host access is granted only through a deliberate user gesture directed at the extension.

However, a logic flaw in how hardware media keys (e.g., Play/Pause, Next Track) are handled allows extensions to bypass this requirement and obtain ambient host access to the active tab.

Technical Details

  1. Auto-assignment and Non-exclusivity: Unlike regular keyboard shortcuts, media keys are automatically assigned to extensions upon installation without user confirmation (CommandService::CanAutoAssign returns true for media keys). Furthermore, media keys are non-exclusive; multiple extensions can register a listener for the exact same media key simultaneously.
  2. Registry and Delegate: In desktop browser windows, extensions are bound via ExtensionKeybindingRegistryViews. This registry is constructed with an ExtensionKeybindingRegistryDelegateTabStrip, whose GetWebContentsForExtension() method returns the WebContents of the currently active tab.
  3. Event Interception: When the user has Chrome focused and presses a media key, the event is caught (via CGEventTap on Mac or views::FocusManager on Windows) and routed to ExtensionKeybindingRegistry::NotifyEventTargets.
  4. Improper Escalation: ExecuteCommands iterates through all extensions listening to that specific media key and calls CommandExecuted for each one. Inside ExtensionKeybindingRegistry::CommandExecuted, the code retrieves the active tab's WebContents from the delegate and calls ActiveTabPermissionGranter::GrantIfRequested(extension).
  5. Fake User Gesture: Finally, the commands.onCommand event is dispatched to the extension with event->user_gesture = EventRouter::UserGestureState::kEnabled.

Because ActiveTabPermissionGranter does not independently verify if the action was a directed user gesture, it grants full host permissions to every extension listening to the media key. The extension can then immediately call chrome.scripting.executeScript (authorized by the fake user gesture state) to silently exfiltrate data from the active tab.

Since activeTab and scripting permissions do not trigger installation warnings, this provides a reliable, zero-warning path for malicious extensions to steal data when a user presses a media key.

Potential Reproduction Steps

Note: These are suggested steps based on static analysis.

  1. Create an MV3 extension requesting activeTab and scripting permissions.
  2. In manifest.json, register a command with "suggested_key": { "default": "MediaPlayPause" }.
  3. Add a background service worker that listens to chrome.commands.onCommand and calls chrome.scripting.executeScript to read document.body.innerText from the active tab.
  4. Install the extension.
  5. Navigate to a sensitive site in the active tab (e.g., https://mail.google.com).
  6. Press the hardware Play/Pause key on the keyboard.
  7. Observe that the extension silently executes the script and accesses the page content, despite no directed user gesture toward the extension.

Suggested Fix

ExtensionKeybindingRegistry::CommandExecuted should not automatically grant activeTab permissions for commands triggered by non-exclusive, ambient keys like hardware media keys. The logic at line 199 (granter->GrantIfRequested(extension)) should be conditionally bypassed if command.accelerator().IsMediaKey() is true. Alternatively, activeTab should strictly require a verifiable, directed user gesture, and media keys should perhaps dispatch events without UserGestureState::kEnabled.

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 activeTab permission granter does not check whether the triggering command came from a directed user gesture, so it grants access for ambient media key presses.

Impact

A malicious extension could silently read and exfiltrate data from the active tab when the user presses a media key, with no installation warnings.

What the attacker needed

Victim installs a malicious extension; victim presses a media key; Chrome window is focused

The fix

The activeTab permission should not be granted for commands triggered by non-exclusive ambient keys like media keys, or media keys should dispatch events without the user gesture state.

How it was found

  1. Create an extension that requests activeTab and scripting permissions.
  2. Register a command for a media key in the manifest.
  3. Add a background script that listens for the command and runs a script in the active tab.
  4. Install the extension.
  5. Open a sensitive site in the active tab.
  6. Press the media key and observe the script running without a directed gesture.

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.

Extensions can ask for a permission called activeTab, which gives temporary access to the current tab only when the user deliberately clicks the extension or uses a shortcut they set up. This report found that pressing a hardware media key like Play/Pause also gives that access to any extension listening for that key, even though the user did not mean to grant anything to the extension. A malicious extension could then read the page you are looking at.

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.