Information leak in ServiceWorker (CVE-2026-87439)
The browser process forwards an unfiltered URLResponseHead containing privileged telemetry and TLS metadata to an untrusted Service Worker renderer. A compromised renderer could extract internal DNS/DoH configurations and TLS certificate chains.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential information disclosure vulnerability exists in the Service Worker RaceNetworkRequest implementation. When handling main-resource navigations, the browser process forwards an unfiltered URLResponseHead containing privileged telemetry and TLS metadata directly to the untrusted renderer process. This allows a compromised Service Worker renderer to extract sensitive connection metrics and certificate verification data.
Affected files:
content/common/service_worker/race_network_request_url_loader_client.cccontent/common/service_worker/forwarded_race_network_request_url_loader_factory.cccontent/browser/service_worker/service_worker_main_resource_loader.cc
Estimated timestamp from git blame: 2023-06-16
Summary
A potential information disclosure vulnerability exists in the Service Worker RaceNetworkRequest implementation in Chromium.
During a browser-initiated main-frame navigation request, a compromised Service Worker renderer process can bypass the renderer-browser security boundary to obtain browser-privileged metadata. Specifically, it can retrieve LoadTimingInternalInfo (containing internal network configurations, including DNS/DoH configurations) and net::SSLInfo (containing evaluated TLS certificate chains).
While the control-channel requests (e.g., FollowRedirect) are proxy-protected by a URLLoaderProxy to prevent renderer-driven navigation manipulation, the URLLoaderClient data-channel is directly joined to the renderer via Mojo pipe fusion (mojo::FusePipes). The browser process fails to sanitize or strip restricted fields from the URLResponseHead metadata before forwarding it across this channel.
Root Cause Analysis
-
High-Privilege Response Head Generation In
content/browser/service_worker/service_worker_main_resource_loader.cc, the browser process initiates a parallel race network request using options fromNavigationURLLoader::GetURLLoaderOptions(). For outermost main frames, this specifieskURLLoadOptionSendSSLInfoWithResponseand attachestrusted_params. In the network service, this triggers the inclusion ofLoadTimingInternalInfoandssl_infoin the response head:- Source:
services/network/url_loader_util.cc(BuildResponseHeadlines 711-724)
- Source:
-
Direct Pipe Fusion to Renderer In
content/common/service_worker/forwarded_race_network_request_url_loader_factory.cc, theURLLoaderClientpipes are directly fused viamojo::FusePipesunder the assumption that the data delivery channel only carries benign data:C++ bool result = mojo::FusePipes(std::move(client_receiver_), std::move(client));Here,
client_receiver_is the receiver end of the forwarding remote held by the browser-side client, andclientis the client remote supplied by the untrusted renderer process. -
Unsanitized Forwarding When the browser process's
ServiceWorkerRaceNetworkRequestURLLoaderClientreceives the response, it clones and forwards theURLResponseHeadverbatim to theforwarding_client_remote without stripping the sensitive fields:- Source:
content/common/service_worker/race_network_request_url_loader_client.cc(ForwardResponseToClientlines 725-726)
- Source:
Potential Steps to Trigger the Issue
(Note: These are potential steps; our tooling does not currently have the capability to run code to verify with a live exploit or Proof of Concept)
- An attacker registers or compromises a Service Worker on a target scope (e.g.,
evil.example) configured to useRaceNetworkRequest(e.g., via the Static Router API). - A victim navigates to
https://evil.example/index.html(outermost main-frame navigation). - The browser triggers the parallel RaceNetworkRequest with browser-level privileges and options, causing the network process to include
load_timing_internal_infoandssl_infoin theURLResponseHeadreturned. - The compromised Service Worker renderer calls
CreateLoaderAndStarton the forwarded factory to trigger Mojo pipe fusion. - The browser-side client forwards the unsanitized
URLResponseHeadcontainingload_timing_internal_infoandssl_infoto the renderer. - The compromised renderer reads the deserialized response head to exfiltrate DNS/DoH configurations and internal TLS certificate chains.
Suggested Remediation
To enforce the browser-renderer boundary, the browser process must sanitize/strip sensitive fields from the URLResponseHead before forwarding it to the untrusted renderer in ServiceWorkerRaceNetworkRequestURLLoaderClient::ForwardResponseToClient:
void ServiceWorkerRaceNetworkRequestURLLoaderClient::ForwardResponseToClient(
network::mojom::URLResponseHeadPtr head,
mojo::ScopedDataPipeConsumerHandle body,
std::optional<mojo_base::BigBuffer> cached_metadata) {
CHECK(!has_forwarded_response_);
has_forwarded_response_ = true;
// Strip browser-privileged information before crossing the trust boundary
if (head) {
head->load_timing_internal_info.reset();
head->ssl_info.reset();
}
forwarding_client_->OnReceiveResponse(std::move(head), std::move(body),
std::move(cached_metadata));
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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.
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 browser process fails to strip sensitive fields from the URLResponseHead before forwarding it to the renderer via a fused Mojo pipe.
Impact
A compromised Service Worker renderer could obtain internal network configurations and TLS certificate chains, potentially aiding further attacks.
What the attacker needed
Compromised Service Worker renderer; victim navigates to attacker page; RaceNetworkRequest enabled
The fix
The browser process should strip sensitive fields from the URLResponseHead before forwarding it to the renderer.
How it was found
- An attacker registers or compromises a Service Worker on a target scope configured to use RaceNetworkRequest.
- A victim navigates to the attacker's page, triggering an outermost main-frame navigation.
- The browser initiates a parallel RaceNetworkRequest with browser-level privileges, causing the network process to include load_timing_internal_info and ssl_info in the response head.
- The compromised Service Worker renderer calls CreateLoaderAndStart on the forwarded factory to trigger Mojo pipe fusion.
- The browser-side client forwards the unsanitized URLResponseHead to the renderer.
- The compromised renderer reads the deserialized response head to exfiltrate DNS/DoH configurations and internal TLS certificate chains.
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. The browser normally keeps some sensitive network details hidden from web pages. Here, a bug let a malicious Service Worker see those hidden details, like internal DNS settings and certificate information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.