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

Insufficient policy enforcement in Extensions (CVE-2026-14003)

A logic flaw in the pageCapture API's permission check lets an extension capture the full DOM of HTTP/HTTPS pages even when the user has explicitly blocked all extensions on that site. An attacker with a malicious extension could therefore extract sensitive data from sites the user intended to protect.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

Flapjack, 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: The chrome.pageCapture API can potentially bypass user-defined host restrictions, such as the 'Block all extensions on this site' setting. A logic flaw in PermissionsData::CanCaptureVisiblePage allows extensions with the pageCapture permission to capture the full DOM of restricted HTTP/HTTPS pages. This allows extensions to extract sensitive data from sites the user explicitly blocked.

Affected files:

  • extensions/common/permissions/permissions_data.cc

Estimated timestamp from git blame: 2022-06-02

Description

The chrome.pageCapture.saveAsMHTML API allows an extension to capture the contents of a tab as an MHTML archive. While this API requires the pageCapture permission, it should respect user-specified site access restrictions (e.g., when a user chooses "Block all extensions on this site" via the Extensions menu).

However, a logic flaw in PermissionsData::CanCaptureVisiblePage causes it to bypass the user-level host restriction checks for the pageCapture API.

When chrome.pageCapture.saveAsMHTML is called, PageCaptureSaveAsMHTMLFunction::CanCaptureCurrentPage invokes PermissionsData::CanCaptureVisiblePage with CaptureRequirement::kPageCapture.

C++
// extensions/common/permissions/permissions_data.cc

  } else {
    DCHECK_EQ(CaptureRequirement::kPageCapture, capture_requirement);
    if (!has_page_capture) {
      if (error)
        *error = manifest_errors::kPageCaptureNeeded;
      return false;
    }

    // If the URL is a typical web URL, the pageCapture permission is
    // sufficient.
    if ((origin_url.SchemeIs(url::kHttpScheme) ||
         origin_url.SchemeIs(url::kHttpsScheme)) &&
        !extension_urls::IsWebstoreOrigin(origin)) {
      return true;
    }
  }

If the target is a standard HTTP or HTTPS URL, the function immediately returns true.

By returning early here, it bypasses the call to GetPageAccess() (which only happens in the kActiveTabOrAllUrls branch). Since GetPageAccess() is the method that invokes CanRunOnPage()—where the user_restrictions.blocked_hosts check is enforced—the pageCapture API completely ignores user-defined site blocks.

As a result, a malicious extension with the pageCapture permission can query for a tab's ID (e.g., using chrome.tabs.query) and successfully capture the MHTML of a page that the user has explicitly restricted the extension from accessing, breaking the expected privacy boundary.

Potential Steps to Reproduce

Note: These steps are suggested based on static code analysis; our tooling has not yet verified this with a live proof of concept.

  1. Install an extension that has the pageCapture and tabs permissions.
  2. Navigate to an HTTP/HTTPS website with sensitive information.
  3. Open the Extensions menu and explicitly revoke the extension's site access for this site (e.g., "Block all extensions on this site").
  4. The extension background script calls chrome.tabs.query to find the tabId of the blocked site.
  5. The extension calls chrome.pageCapture.saveAsMHTML({tabId: target_tab_id}).
  6. Observe that the API call succeeds and returns the MHTML blob containing the restricted site's DOM, despite the user's explicit block.

Suggested Fix

Update PermissionsData::CanCaptureVisiblePage so that the kPageCapture branch also evaluates user host restrictions. This could be achieved by calling GetPageAccess() or explicitly checking CanRunOnPage() before returning true for HTTP/HTTPS schemes.

Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0


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

The kPageCapture branch returns true early for HTTP/HTTPS URLs without calling GetPageAccess(), so the user's blocked_hosts restriction is never checked.

Impact

A malicious extension with the pageCapture permission could capture the DOM of sites the user explicitly blocked, breaking the expected privacy boundary; the report notes the steps are from static analysis and not yet verified with a live proof of concept.

What the attacker needed

Victim installs a malicious extension; extension has pageCapture and tabs permissions; victim has blocked extensions on the target site

The fix

The kPageCapture branch should also evaluate user host restrictions, for example by calling GetPageAccess() or checking CanRunOnPage() before returning true for HTTP/HTTPS schemes.

How it was found

  1. Install an extension that has the pageCapture and tabs permissions.
  2. Navigate to an HTTP/HTTPS website with sensitive information.
  3. Block all extensions on that site via the Extensions menu.
  4. The extension uses chrome.tabs.query to find the tab ID of the blocked site.
  5. The extension calls chrome.pageCapture.saveAsMHTML with that tab ID.
  6. The call succeeds and returns the MHTML blob of the restricted site's 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.

Browser extensions can ask for permission to read the contents of web pages. Users can also tell the browser to block all extensions on a particular site. This report says that one specific extension feature, which saves a copy of a page, ignores that block, so an extension could still read a site the user had protected.

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.