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

Incorrect authorization in Loader (CVE-2026-87476)

A logic flaw in Blink's stale-while-revalidate mechanism causes background revalidation requests to lose their originating DOMWrapperWorld context, so extension-initiated fetches are not excluded from the page's Performance Timeline. A web page could then observe sensitive extension URLs and query parameters via the Resource Timing API.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: Blink's stale-while-revalidate (SWR) mechanism creates background revalidation requests using a null DOMWrapperWorld context. This strips the isolated world information required to hide extension-initiated fetches from the page's Performance Timeline. Consequently, web pages can potentially observe sensitive extension URLs and query parameters using the Resource Timing API.

Affected files:

  • third_party/blink/renderer/platform/loader/fetch/resource_fetcher.cc

Estimated timestamp from git blame: 2023-01-09

Summary

A logic flaw exists in how Blink handles stale-while-revalidate (SWR) network fetches. Background SWR requests lose their originating DOMWrapperWorld context, causing extension-initiated fetches to bypass privacy checks and be incorrectly logged to the untrusted page's PerformanceResourceTiming buffer.

Root Cause Analysis

When a cached resource is stale but eligible for stale-while-revalidate, Blink schedules a background revalidation request via ResourceFetcher::RevalidateStaleResource (third_party/blink/renderer/platform/loader/fetch/resource_fetcher.cc).

During the creation of this background request, the code explicitly drops the world context:

C++
void ResourceFetcher::RevalidateStaleResource(Resource* stale_resource) {
  // ...
  ResourceRequest request;
  request.CopyHeadFrom(stale_resource->GetResourceRequest());
  // TODO(https://crbug.com/1405800): investigate whether it's correct to use a
  // null `world` in the ResourceLoaderOptions below.
  FetchParameters params(std::move(request),
                         ResourceLoaderOptions(/*world=*/nullptr));
  // ...
}

When this background request finishes, Blink attempts to record its timing information via ResourceFetcher::PopulateAndAddResourceTimingInfo. To prevent web pages from spying on extension activity, this function checks if the fetch originated from an isolated world:

C++
  // Resource timing entries that correspond to resources fetched by extensions
  // are precluded.
  if (resource->Options().world_for_csp &&
      resource->Options().world_for_csp->IsIsolatedWorld()) {
    return;
  }

Because the world_for_csp was hardcoded to nullptr during SWR request creation, this security check evaluates to false. The function proceeds to expose the timing entry (including the full request URL with any sensitive query parameters) to the main world's performance timeline.

Potential Steps to Reproduce

Note: Our tooling agent does not currently have the ability to execute code, so these are suggested steps based on static analysis.

  1. Install an extension with a content script that executes on an untrusted page (e.g., attacker.example).
  2. The content script makes a fetch request to its backend: fetch('https://ext-api.example/data?secret=TOKEN').
  3. The backend responds with headers enabling SWR: Cache-Control: max-age=1, stale-while-revalidate=3600.
  4. The untrusted page waits for the cache to become stale (e.g., > 1 second).
  5. The extension performs the exact same fetch again (e.g., triggered by a timer or user interaction). Blink serves the stale cache and triggers a background SWR fetch.
  6. The untrusted page polls performance.getEntriesByType('resource').
  7. The page observes the SWR background request in the returned entries and extracts the secret=TOKEN from the URL, achieving a cross-world information leak.

Suggested Fix

Update ResourceFetcher::RevalidateStaleResource to inherit the DOMWrapperWorld from the original stale_resource instead of passing nullptr.

C++
  FetchParameters params(std::move(request),
                         ResourceLoaderOptions(stale_resource->Options().world_for_csp.Get()));

Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f


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 background revalidation request is created with a null world context, so the check that should exclude extension fetches from resource timing evaluates to false.

Impact

A web page could potentially read sensitive extension URLs and query parameters, but the report is based on static analysis and the steps were not executed.

What the attacker needed

An installed extension with a content script; the extension fetches a URL with sensitive query parameters; the backend enables stale-while-revalidate; the page waits for the cache to become stale

The fix

The fix should make the background revalidation request inherit the original resource's world context instead of using null.

How it was found

  1. Install an extension with a content script that runs on an untrusted page.
  2. The content script fetches a backend URL containing a secret.
  3. The backend responds with headers enabling stale-while-revalidate.
  4. The untrusted page waits for the cache to become stale.
  5. The extension performs the same fetch again, triggering a background revalidation.
  6. The untrusted page polls the resource timing entries and extracts the secret from the URL.

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.

When a browser extension fetches data, the browser normally hides that activity from the web page so the page cannot spy on the extension. Here, a caching feature called stale-while-revalidate made a background request without remembering it came from the extension, so the page could see the request's address and any secrets in it.

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.