Skip to content
Cache bugs Advisory Advanced CVE-2026-79264

Incorrect reference resolution in Preload (CVE-2026-79264)

Blink's MemoryCache reuses Service Worker-intercepted preload responses across script worlds, so a malicious web page can poison a resource that an extension later loads in its privileged isolated world. An attacker could thereby execute their own code in the extension's context.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

A vulnerability in Blink's MemoryCache allows a malicious web page to bypass context isolation by poisoning resources used by isolated worlds (e.g., Extensions, DevTools, Userscripts). I'm filing this to get agreement on the best future-proofing solution to this exploit.

Exploit steps example (for an extension)

  1. Trigger Preload: A malicious web (non-extension) page preloads a sensitive resource (e.g., chrome-extension://[ID]/script.js).
  2. Interception: The page's Service Worker (SW) intercepts the preload and returns malicious content via event.respondWith().
  3. Caching: Blink's MemoryCache stores this poisoned response, keyed by URL but associated with the main world.
  4. Execution: When an extension later attempts to load the same URL in its isolated world, the MemoryCache reuses the poisoned resource, executing the attacker's code in the extension's privileged context.

Compare solutions

I have a limited to extensions fix in CL 7796808, but I think there's a potential to fix the root cause by preventing cross-world resource loads from SW cached resources (below).

Feature Targeted Fix (CL 7796808) Comprehensive Fix (Proposed)
Scope chrome-extension:// only All SW-intercepted resources
Protection Blocks extension script poisoning Blocks poisoning of scripts, JSON, and data across all schemes (e.g., https://)
Consistency Scheme-specific workaround Aligns with the network stack (which already bypasses page SW for isolated worlds)

Potential comprehensive fix

Modify Resource::CanReuse in third_party/blink/renderer/platform/loader/fetch/resource.cc to enforce world-partitioning for all Service Worker responses:

C++
bool Resource::CanReuse(const FetchParameters& params) const {
  // ... existing reuse checks ...

  // If fulfilled by a Service Worker, the resource is only safe to reuse 
  // within the same script world. This prevents a main-world SW from 
  // poisoning resources used by isolated worlds.
  if (GetResponse().WasFetchedViaServiceWorker() && 
        options_.world_for_csp != params.Options().world_for_csp) {
    return false;
  }

  return true;
}

Potential concerns

  • Standard web browsing should remain unaffected (web page scripts in the main world will continue to use the cache).
  • AFAIK this shouldn't impact worker and main world communication since workers are on a separate thread from main and do not reuse the main world cache.
  • If an web page and an extension wanted to share a common library this will break them. However, extensions are, by policy, not allowed to load remotely hosted code so this breakage is not a concern.

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 cache reuse check does not partition Service Worker-fulfilled responses by script world, so a main-world response can be reused in an isolated world.

Impact

An attacker could run code in an extension's privileged context, though the text only demonstrates this for extension resources and proposes a fix that is not yet confirmed as shipped.

What the attacker needed

Victim visits a malicious web page; page controls a Service Worker; target extension loads the same URL

The fix

The proposed comprehensive fix makes Resource::CanReuse refuse to reuse a Service Worker-fulfilled response when the requesting script world differs from the one that stored it; a narrower extension-only fix also exists in a pending change list.

How it was found

  1. A malicious non-extension page preloads a sensitive extension resource.
  2. The page's Service Worker intercepts the preload and returns malicious content.
  3. Blink's MemoryCache stores the poisoned response under the URL, tied to the main world.
  4. When the extension loads the same URL in its isolated world, the cache reuses the poisoned resource and the attacker's code runs in the extension context.

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 browser keeps recently fetched files in a short-term memory cache so it does not download them again. The report says that cache did not distinguish between a normal web page and a privileged extension, so a bad page could put its own file into the cache under a name the extension later asks for. The extension would then run the attacker's file with the extension's powers.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.