Skip to content
Info disclosure Advisory Advanced CVE-2026-9115

Insufficient policy enforcement in Service Worker (CVE-2026-9115)

The Service Worker Static Routing API fails to validate the response type when serving from a cache source during navigation, allowing an attacker to serve opaque cross-origin responses as a navigation response. This could leak internal metadata and data, such as status codes, headers, and allowed bodies, to the attacker's origin.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: The Service Worker Static Routing API fails to validate the response type when serving from a cache source during navigation. This allows an attacker to serve opaque cross-origin responses as a navigation response, potentially leaking internal metadata and data to the attacker's origin.

Affected files:

  • content/browser/service_worker/service_worker_cache_storage_matcher.cc
  • content/browser/service_worker/service_worker_main_resource_loader.cc
  • content/browser/service_worker/service_worker_loader_helpers.cc

Estimated timestamp from git blame: 2025-06-26

Vulnerability Detail

A logic vulnerability in the Service Worker Static Routing API allows a web attacker to potentially bypass the Same-Origin Policy (SOP) and Opaque Response Blocking (ORB) constraints for certain resource types.

In the standard Service Worker fetch event path, the renderer-side FetchRespondWithObserver enforces that kOpaque responses cannot be served to client requests (such as navigations). However, when using the Static Routing API with a cache source, this validation is bypassed because the response is handled within the browser process without equivalent checks.

When a cross-origin resource is fetched with mode: 'no-cors' and stored using cache.put(), Blink's FetchResponseData::PopulateFetchAPIResponse recurses into the internal_response_. This means the Cache Storage actually stores the internal status code (e.g., 200), headers, and body, even though the response type is marked as kOpaque.

When a navigation matches a static route with a cache source:

  1. ServiceWorkerCacheStorageMatcher::DidMatch receives the cached FetchAPIResponse but fails to verify if the response_type is kOpaque before passing it to the loader.
  2. In ServiceWorkerMainResourceLoader::DidDispatchFetchEvent, the check status_code != 0 passes because the internal status code (e.g., 200) was retrieved from the cache.
  3. ServiceWorkerLoaderHelpers::SaveResponseInfo then copies the internal headers and status code into the navigation's URLResponseHead without filtering.
  4. The browser commits the response body as a same-origin document on the attacker's origin.

Impact

A malicious website can register a Service Worker that uses a static route to serve a cross-origin resource from the cache. By doing so, the attacker can potentially:

  • Perform cross-origin login detection or existence probes by reading the exact HTTP status code of a victim's resource.
  • Exfiltrate internal HTTP headers from cross-origin requests.
  • Read the contents of JS, CSS, images, and media files from another origin (which are permitted by ORB during the initial 'no-cors' fetch but would normally be opaque to the attacker).

While ORB strips HTML, JSON, and XML bodies during the initial network fetch, the leak of status codes and other resource types constitutes a significant information disclosure.

Potential Reproduction Steps

These are suggested steps to trigger the vulnerability:

  1. Serve a page from attacker.com with a Service Worker. The SW install handler should call event.addRoutes with a route that matches a specific path (e.g., /leak) and uses source: 'cache'.
  2. From the attacker's page, perform a fetch: const r = await fetch('https://victim.example/api/status', {mode:'no-cors'});.
  3. Store the result: const c = await caches.open('x'); await c.put('/leak', r);.
  4. Navigate to https://attacker.com/leak (e.g., inside an iframe).
  5. The navigation will commit the victim's internal response data under the attacker.com origin.
  6. The attacker can then observe the navigation status or use iframe.contentDocument to infer the victim's response status, headers, and allowed bodies.

Suggested Fix

Add a check in ServiceWorkerCacheStorageMatcher::DidMatch or ServiceWorkerMainResourceLoader::DidDispatchFetchEvent to explicitly reject responses with response_type == network::mojom::FetchResponseType::kOpaque when handling a navigation request. If an opaque response is encountered, it should be treated as a network error, mirroring the behavior of the renderer-side FetchRespondWithObserver.

Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651


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. Please feel free to reach out to me if you have concerns or feedback.

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 browser process code handling static routing with a cache source does not check if the cached response is opaque before using it as a navigation response, unlike the renderer-side fetch event path.

Impact

An attacker could perform cross-origin login detection, exfiltrate internal HTTP headers, and read the contents of JS, CSS, images, and media files from another origin, though ORB strips HTML, JSON, and XML bodies during the initial fetch.

What the attacker needed

Attacker controls a website; victim visits attacker's site; browser supports Service Worker Static Routing API

The fix

The fix should add a check to reject opaque responses when handling navigation requests, treating them as network errors.

How it was found

  1. Serve a page from attacker.com with a Service Worker that adds a static route matching a path and using source 'cache'.
  2. From the attacker's page, fetch a cross-origin resource with mode 'no-cors'.
  3. Store the fetched response in the cache under the route path.
  4. Navigate to the route path (e.g., inside an iframe).
  5. The navigation commits the victim's internal response data under the attacker's origin.
  6. The attacker observes the navigation status or uses iframe.contentDocument to infer the victim's response status, headers, and allowed bodies.

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 Service Worker is a script that runs in the background of a website and can intercept network requests. The Same-Origin Policy normally stops one website from reading data from another website. This report shows a way to bypass that rule using a new feature, so an attacker's site could read some information from other sites.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.