Skip to content
CORS Advisory Advanced CVE-2026-121102

Missing authorization in BackgroundFetch (CVE-2026-121102)

Background fetch in Chrome did not enforce CORS preflight checks when a same-origin request redirected to a cross-origin URL, allowing an attacker to send almost arbitrary headers of arbitrary length cross-origin. This could enable cross-origin requests with custom headers that would normally be blocked by CORS.

Maurice Dauer Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 4.5 years

VULNERABILITY DETAILS
Background fetch does not check the headers and if a CORS preflight request is required when redirecting from same-origin to cross-origin, making it possible to send almost arbitrary headers of arbitrary length cross-origin. The same restrictions for specific headers apply as with same-origin request, so it is for example not possible to set/override the Origin or Sec-\* header.

VERSION
Chrome Version: Version 101.0.4951.41 (Official Build) Arch Linux (64-bit)

REPRODUCTION CASE

<script>  
  const url = "" // change me  
  
  navigator.serviceWorker.ready.then(async (swReg) => {  
    const request = new Request("/redirect.php?url=" + url, { headers: { "moin": "a".repeat(10000) }});  
    const bgFetch = await swReg.backgroundFetch.fetch("test", [request]);  
    console.log(bgFetch);  
  });  
  
  navigator.serviceWorker.register("sw.js");  
</script>  
// can be empty  
<?php  
header("Location: " . $_GET["url"]);  

Start a local php server hosting the above files (e.g. php -S 127.0.0.1:8000) and exchange the url in test.html file with a not-same-origin address you control (for example by using nc -lvp 8000 on a server to see the whole incoming request).

CREDIT INFORMATION
Reporter credit: Maurice Dauer

The original report as published on the Chromium issue tracker, by Maurice Dauer. 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 fetch implementation did not re-evaluate CORS requirements after a redirect from same-origin to cross-origin, so it treated the redirected request as if it were still same-origin.

Impact

An attacker could send cross-origin requests with almost arbitrary headers of arbitrary length, potentially bypassing CORS protections, though certain headers like Origin and Sec-* cannot be overridden.

What the attacker needed

Victim visits attacker's page; attacker controls a cross-origin server; service worker registered

How it was found

  1. Host a test page and an empty service worker on a local PHP server.
  2. In the test page, create a request to a same-origin redirect script with a custom header of large size.
  3. Use the background fetch API to fetch that request.
  4. Set the redirect script to redirect to a cross-origin URL under the attacker's control.
  5. Observe the incoming request on the attacker's server to see the custom header sent cross-origin.

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 web page tries to send data to a different website, the browser normally asks that website for permission first (a CORS preflight). This report found that Chrome's background fetch feature skipped that permission check if the request started on the same site and then redirected to another site. That meant a malicious page could send custom headers to a victim's server without the usual browser safeguards.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More by Maurice Dauer

View all

8 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.