Skip to content
Business logic Advisory Advanced CVE-2026-13886

Policy bypass in Isolated Web Apps (CVE-2026-13886)

An Isolated Web App's Service Worker could intercept a navigation and return its own response, which skipped the browser-injected Content Security Policy that normally keeps such apps to their signed bundle. This let a malicious app author run unsigned remote code with the app's full high privileges.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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 security team.

Overview: A potential vulnerability exists where an Isolated Web App (IWA) Service Worker can bypass the mandatory browser-injected Content Security Policy (CSP). By intercepting a navigation request and providing a synthesized response, the Service Worker evades the IWA URL loader factory, allowing unsigned remote code to execute with full IWA privileges.

Affected files:

  • components/webapps/isolated_web_apps/url_loading/url_loader_factory.cc
  • content/browser/loader/navigation_url_loader_impl.cc
  • content/browser/service_worker/service_worker_main_resource_loader.cc

Estimated timestamp from git blame: 2024-07-28

Summary

Isolated Web Apps (IWAs) are granted high-privilege capabilities (such as Direct Sockets, Smart Card access, and unrestricted USB access) based on the guarantee that all executable code is contained within a signed .swbn bundle. This guarantee is enforced by a mandatory, non-overridable, browser-injected Content Security Policy (CSP).

A potential vulnerability exists where an IWA Service Worker can bypass this mandatory CSP injection by intercepting navigation requests via event.respondWith(). This allows a malicious IWA author to serve a synthesized document with no CSP, enabling the execution of unsigned, remotely-fetched scripts while retaining full IWA privileges.

Technical Details

The mandatory CSP for IWAs is injected by the HeaderInjectionURLLoaderClient inside IsolatedWebAppURLLoaderFactoryImpl (components/webapps/isolated_web_apps/url_loading/url_loader_factory.cc). This guarantees that all resources loaded through the isolated-app:// scheme are strictly sandboxed.

However, when a Service Worker intercepts a navigation request, this loader is bypassed:

  1. During navigation, NavigationURLLoaderImpl::MaybeStartLoader (content/browser/loader/navigation_url_loader_impl.cc) checks for interceptors.
  2. If an active Service Worker elects to handle the navigation, it provides a single_request_factory (backed by ServiceWorkerMainResourceLoader).
  3. NavigationURLLoaderImpl routes the request to StartInterceptedRequest, which uses the Service Worker's factory. This completely bypasses the scheme-specific IsolatedWebAppURLLoaderFactory and, consequently, the HeaderInjectionURLLoaderClient.
  4. Within the Service Worker, event.respondWith() can be used to synthesize a response. ServiceWorkerMainResourceLoader::StartResponse passes the Service Worker's synthesized headers directly to the browser via blink::ServiceWorkerLoaderHelpers::SaveResponseInfo without enforcing the mandatory IWA CSP.
  5. The Service Worker can intentionally omit the CSP header but include Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp.
  6. When the navigation commits, NavigationRequest::ComputeWebExposedIsolationInfo sees the valid COOP/COEP headers on an isolated-app:// scheme and grants the document WebExposedIsolationInfo::CreateIsolatedApplication() status.
  7. Since the Service Worker's own CSP (applied during its installation) allows connect-src https:, the Service Worker can fetch() a malicious remote script and inline it into the HTML of the synthesized response. The resulting document commits with full IWA privileges and no CSP, executing the remote code.

Potential Attack Scenario

Note: These are potential steps based on code analysis; our tooling agent does not have the ability to run live code.

  1. An attacker authors a malicious IWA and convinces an enterprise administrator or user to install it.
  2. The IWA registers a Service Worker on its first load.
  3. The user navigates to a new page within the app, triggering a navigation FetchEvent in the Service Worker.
  4. The Service Worker intercepts the request (request.mode === 'navigate') and fetches an unsigned payload from the attacker's remote server (https://attacker.example/payload.js).
  5. The Service Worker calls event.respondWith(), synthesizing an HTML response that embeds the remote payload in an inline <script> tag.
  6. The Service Worker sets the Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers to satisfy IWA isolation checks, but deliberately omits the Content-Security-Policy header.
  7. The browser commits the navigation. Because the IWA URL Loader Factory was bypassed, no default CSP is injected. The document is granted full IWA privileges, and the inline unsigned remote script executes, defeating the signed bundle's integrity guarantees.

Suggested Fix

The mandatory IWA CSP enforcement relies too heavily on the URL Loader layer, which is inherently bypassable via Service Worker interception.

To fix this, the default IWA CSP should be enforced during the navigation commit phase, independently of the URL Loader that provided the response. Specifically, in NavigationRequest::ComputePoliciesToCommit (content/browser/renderer_host/navigation_request.cc), if the navigation is committing to an isolated-app:// origin, the browser should forcefully append the kIsolatedAppCspTemplate to the document's PolicyContainer, overriding or merging with any headers provided by the response.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


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 mandatory IWA CSP was only added by the scheme-specific URL loader, so a Service Worker that intercepts the navigation and supplies its own response never passes through that loader and no CSP is enforced.

Impact

Unsigned remote code could run with full Isolated Web App privileges, defeating the signed bundle's integrity guarantee; the report notes this is based on code analysis and was not run live.

What the attacker needed

Victim installs a malicious IWA; app registers a Service Worker; user navigates within the app

The fix

The default IWA CSP should be enforced at navigation commit, appending it to the policy container for any isolated-app:// origin regardless of the loader that produced the response.

How it was found

  1. Install a malicious Isolated Web App.
  2. The app registers a Service Worker on its first load.
  3. The user navigates within the app, firing a navigation fetch event in the Service Worker.
  4. The Service Worker fetches an unsigned script from a remote server.
  5. It responds with a synthesised HTML page that inlines the script and sets COOP and COEP but no CSP.
  6. The navigation commits with full app privileges and the remote script runs.

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.

An Isolated Web App is a web app the browser treats as trusted and gives powerful abilities, on the promise that all its code came from a signed package. A Content Security Policy is a browser rule that says which scripts may run, and here it was meant to block anything not in that package. The report says a background script inside the app could answer page loads itself and leave that rule out, so outside code could run with the app's powers.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.