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

Insufficient validation of untrusted input in Workers (CVE-2026-19153)

A missing URL scheme check in the worker script loader's redirect handler allows a compromised renderer to forge a cross-origin redirect from a blob URL. This could let the renderer obtain cross-origin Service Worker response data, bypassing Site Isolation.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 29 days

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A missing URL scheme check in WorkerScriptLoader's redirect handler potentially allows a compromised renderer to forge a cross-origin redirect from a custom blob: URL. By driving the browser-side service worker interceptor with the redirected victim URL, the renderer can potentially obtain cross-origin Service Worker response data. This leads to a potential Site Isolation bypass and cross-origin information leak.

Affected files:

  • content/browser/worker_host/worker_script_loader.cc
  • content/browser/worker_host/worker_script_fetcher.cc

Estimated timestamp from git blame: 2018-04-06

Root Cause

In Chromium, loading a blob: URL should never produce a redirect. For standard frame navigations, this security property is enforced in NavigationURLLoaderImpl::OnReceiveRedirect (content/browser/loader/navigation_url_loader_impl.cc:1595-1597):

C++
if (url_.SchemeIsBlob()) {
  // Loading a blob URL never produces a redirect.
  error = net::ERR_UNSAFE_REDIRECT;
}

However, this mitigation was not applied to the worker main-script loading path. Specifically, WorkerScriptLoader::OnReceiveRedirect (content/browser/worker_host/worker_script_loader.cc:228-241) accepts redirects unconditionally:

C++
void WorkerScriptLoader::OnReceiveRedirect(
    const net::RedirectInfo& redirect_info,
    network::mojom::URLResponseHeadPtr response_head) {
  DCHECK_CURRENTLY_ON(BrowserThread::UI);
  if (--redirect_limit_ == 0) { ...; return; }

  redirect_info_ = redirect_info;
  client_->OnReceiveRedirect(redirect_info, std::move(response_head));
}

When a worker script loader accepts a redirect, WorkerScriptFetcher::OnReceiveRedirect immediately auto-follows the redirect via url_loader_->FollowRedirect() (content/browser/worker_host/worker_script_fetcher.cc:784-791). This results in WorkerScriptLoader::FollowRedirect rewriting resource_request_.url with the new, attacker-supplied redirect URL and calling Start() again to re-enter the Service Worker interceptor layer with the new URL.

Because the request has not yet committed, the associated ServiceWorkerClient's state can be mutated to the new cross-origin URL. The security helper CheckOnUpdateUrls (content/browser/service_worker/service_worker_security_utils.cc:54-77) that asserts origin boundaries is compiled out in production builds because it is wrapped entirely within #if DCHECK_IS_ON().

Consequently, the browser can be coerced into dispatching a FetchEvent to a cross-origin Service Worker (under the victim's partitioned storage key) and routing the returned response data pipe back to the attacker's renderer process via WorkerMainScriptLoadParams during client_->OnScriptLoadStarted in DedicatedWorkerHost::DidStartScriptLoad.


Potential Trigger Steps

Note: These are suggested and potential steps; our tooling does not have the ability to run functional exploit code to verify this sequence.

  1. A compromised renderer process under https://evil.com binds a local implementation of blink::mojom::Blob and registers a custom blob URL (e.g., blob:https://evil.com/attacker-uuid) via BlobURLStoreImpl::Register.
  2. The renderer requests worker script loading for this blob URL via DedicatedWorkerHostFactory::CreateWorkerHostAndStartScriptLoad, passing the corresponding BlobURLToken.
  3. The browser establishes the connection and initiates the loader. Since the target is a blob URL, it queries the renderer's blob implementation via BlobURLLoaderFactory::CreateLoaderAndStart. This delivers a browser-process Mojo URLLoaderClient remote directly to the attacker's renderer.
  4. The compromised renderer invokes client->OnReceiveRedirect on the acquired Mojo remote, supplying a forged net::RedirectInfo targeting https://victim.com/secret.
  5. WorkerScriptLoader stores the redirect without validating that the original scheme was blob:. WorkerScriptFetcher auto-follows, and WorkerScriptLoader::FollowRedirect updates the request URL to https://victim.com/secret and restarts.
  6. The browser-side ServiceWorkerMainResourceLoaderInterceptor runs InitializeForRequest on the redirected URL. Since no response has committed yet, is_response_committed() is false, allowing the browser to update the worker's ServiceWorkerClient URL and key to the victim's origin (partitioned under https://evil.com).
  7. The interceptor lookup succeeds for a partitioned Service Worker matching the victim's origin, dispatches a FetchEvent to the victim's Service Worker for https://victim.com/secret, and returns the cross-origin response data pipe directly back to the attacker's renderer via client_->OnScriptLoadStarted.

Impact

A compromised renderer can potentially bypass Site Isolation and leak cross-origin data by forcing the browser to execute a cross-origin fetch through a victim's partitioned Service Worker and retrieve its response body.


Suggested Fix

Enforce scheme validation inside WorkerScriptLoader::OnReceiveRedirect similar to the navigation loader. Reject any redirect attempt if the original request URL scheme is a blob URL:

C++
void WorkerScriptLoader::OnReceiveRedirect(
    const net::RedirectInfo& redirect_info,
    network::mojom::URLResponseHeadPtr response_head) {
  DCHECK_CURRENTLY_ON(BrowserThread::UI);
  
  if (resource_request_.url.SchemeIsBlob()) {
    complete_status_ = network::URLLoaderCompletionStatus(net::ERR_UNSAFE_REDIRECT);
    CommitCompleted();
    return;
  }
  
  if (--redirect_limit_ == 0) {
    complete_status_ = network::URLLoaderCompletionStatus(net::ERR_TOO_MANY_REDIRECTS);
    CommitCompleted();
    return;
  }

  redirect_info_ = redirect_info;
  client_->OnReceiveRedirect(redirect_info, std::move(response_head));
}

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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 worker script loading path did not enforce the rule that a blob URL must never redirect, unlike the navigation loader, and a debug-only origin check was compiled out in production.

Impact

A compromised renderer could bypass Site Isolation and leak cross-origin data by forcing the browser to fetch through a victim's partitioned Service Worker and return its response body.

What the attacker needed

Compromised renderer process; victim has a partitioned Service Worker

The fix

The worker script loader should reject any redirect when the original request URL is a blob URL, mirroring the navigation loader.

How it was found

  1. A compromised renderer registers a custom blob URL.
  2. The renderer asks to load a worker script from that blob URL.
  3. The browser asks the renderer's blob implementation for a loader, giving the renderer a browser-side client remote.
  4. The renderer calls OnReceiveRedirect on that remote with a forged redirect to a victim URL.
  5. The loader accepts the redirect without checking the original scheme and restarts the request at the victim URL.
  6. The browser-side service worker interceptor updates the worker client to the victim origin and dispatches a fetch event, returning the response to the attacker's renderer.

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 blob URL is a temporary in-browser address for data created by a page. The browser normally refuses to follow a redirect from a blob URL, but the code that loads worker scripts forgot this check. A malicious page that already controls part of the browser could abuse this to read data from another website.

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.