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

Inappropriate implementation in Extensions (CVE-2026-17781)

A logic flaw in the chrome.tabs.discard() extension API lets an extension discard tabs and read their URLs and titles from other browser profiles or Incognito windows. An attacker could use this to bypass the Incognito permission boundary and disclose sensitive tab metadata.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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 logic flaw in the chrome.tabs.discard() API allows an extension to discard tabs and retrieve sensitive metadata (URLs, titles) from other browser profiles or Incognito windows. This bypasses the 'Allow in Incognito' setting and the fundamental security boundary between Chrome profiles.

Affected files:

  • chrome/browser/extensions/api/tabs/tabs_api.cc
  • chrome/browser/performance_manager/policies/page_discarding_helper.cc
  • chrome/browser/resource_coordinator/utils.cc
  • chrome/browser/extensions/extension_tab_util.cc
  • chrome/browser/performance_manager/policies/discard_eligibility_policy.cc

Estimated timestamp from git blame: 2026-02-23

Description

A potential vulnerability has been identified in the chrome.tabs.discard() extension API implementation. When the API is called without a tabId parameter, the selection of the tab to be discarded is delegated to the global PerformanceManager graph. This graph tracks every active tab across all browser profiles and Incognito windows within the browser process.

The current implementation fails to restrict this selection to tabs belonging to the calling extension's BrowserContext. As a result, an extension running in one profile can trigger the discard of a tab in a different profile or an Incognito window. Furthermore, the API returns a tabs.Tab object constructed from the selected WebContents without verifying whether the extension is permitted to access that tab's profile, leading to the disclosure of sensitive information such as the tab's URL and title.

Potential Root Cause

  1. In chrome/browser/extensions/api/tabs/tabs_api.cc: The TabsDiscardFunction::Run() method (line 4040) handles the no-argument case by calling resource_coordinator::DiscardLeastImportantTab. This call lacks any mechanism to filter candidates by profile.
  2. In chrome/browser/performance_manager/policies/page_discarding_helper.cc: The DiscardMultiplePagesImpl method (line 161) iterates through all available PageNode objects globally via GetOwningGraph()->GetAllPageNodes(). While it evaluates discard eligibility based on tab state (e.g., background vs. visible), it does not filter by BrowserContextID.
  3. In chrome/browser/extensions/extension_tab_util.cc: The GetScrubTabBehavior and CreateTabObject functions populate the returned Tab object. While they verify the extension's manifest permissions (e.g., the tabs permission), they omit checks for whether the extension is permitted to access the specific BrowserContext of the discarded tab, especially regarding cross-profile or unauthorized Incognito access.

Suggested Reproduction Steps (Potential)

  1. Open two Chrome profiles (e.g., Profile A and Profile B) or a regular window and an Incognito window.
  2. In Profile B (or Incognito), navigate to a sensitive URL (e.g., https://example.com/private_data) and switch to another tab so the sensitive tab remains in the background.
  3. In Profile A, install an extension with the tabs permission and ensure 'Allow in Incognito' is disabled.
  4. Execute chrome.tabs.discard() from the extension in Profile A.
  5. Observe if the background tab in Profile B (or Incognito) is discarded.
  6. Verify if the console output of the extension in Profile A contains a tabs.Tab object for the foreign tab, including its URL and title.

Impact

  • Information Disclosure: A malicious extension can obtain sensitive information (URLs and titles) from tabs in other profiles or Incognito windows, bypassing the 'Allow in Incognito' security boundary.
  • Cross-Profile Action: An extension can forcibly discard tabs in other profiles, potentially leading to the loss of unsaved form state, scroll position, and transient JavaScript state in those tabs.

Suggested Fix

Modify TabsDiscardFunction::Run to ensure that any automatically selected tab is accessible by the calling extension. This could be achieved by passing the calling BrowserContext to the discard selection logic to filter candidates, or by validating the resulting WebContents profile in TabsDiscardFunction::Run. If the selected tab is not accessible, the API should either fail, select a different tab, or return a result that does not disclose sensitive information.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 discard selection logic iterates over all tabs in the browser process without filtering by the calling extension's BrowserContext, and the returned tab object is built without checking profile access.

Impact

A malicious extension could obtain URLs and titles from tabs in other profiles or Incognito windows, bypassing the Incognito boundary, and could forcibly discard those tabs, potentially losing unsaved state.

What the attacker needed

An installed extension with the tabs permission; Incognito access disabled for the extension; a second profile or Incognito window open

The fix

The discard selection should be restricted to tabs in the calling extension's BrowserContext, or the returned tab should be validated for profile access before any metadata is disclosed.

How it was found

  1. Open two Chrome profiles or a regular and an Incognito window.
  2. In the second profile or Incognito window, open a sensitive page and leave it in the background.
  3. In the first profile, install an extension with the tabs permission and Incognito access disabled.
  4. Call chrome.tabs.discard() from that extension.
  5. Check whether the background tab in the other profile or Incognito window is discarded.
  6. Check whether the extension receives a tab object with that tab's URL and title.

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.

Chrome keeps separate profiles and Incognito windows apart so one cannot see the other's tabs. An extension API meant to close idle tabs did not check which profile a tab belonged to. So an extension in one profile could close a tab in another profile and learn its address and title.

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.