Skip to content
CORS Advisory Advanced CVE-2026-87485

Incorrect authorization in CORS (CVE-2026-87485)

The Network Service trusted a renderer-provided flag to skip CORS preflight and access checks for cache revalidation requests. A compromised renderer could spoof this flag to leak cross-origin headers and create ETag/Last-Modified oracles.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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 security team.

Overview: A compromised renderer can bypass CORS checks by setting the internal is_revalidating flag to true on a resource request. This allows an attacker to send cache validation headers cross-origin without a preflight and bypass access checks on 304 Not Modified responses. Consequently, the attacker can leak cross-origin headers and create credentialed ETag/Last-Modified oracles.

Affected files:

  • services/network/cors/cors_url_loader.cc
  • services/network/cors/cors_url_loader_factory.cc
  • services/network/public/cpp/cors/cors_util.cc
  • services/network/public/mojom/url_request.mojom

Estimated timestamp from git blame: 2026-02-19

Description

There is a potential vulnerability in the Network Service's handling of CORS checks for cache revalidation requests. The network::mojom::URLRequest struct contains a boolean flag is_revalidating. This flag is populated by the renderer and passed to the Network Service via Mojo IPC.

Currently, the Network Service implicitly trusts this renderer-provided flag to relax CORS enforcements:

  1. Preflight Bypass: In CorsUnsafeNotForbiddenRequestHeaderNames (services/network/cors/cors_util.cc), if is_revalidating is true, cache validation headers like If-Modified-Since and If-None-Match are exempted from triggering a CORS preflight.
  2. Access Check Bypass: In CorsURLLoader::OnReceiveResponse (services/network/cors/cors_url_loader.cc), if is_revalidating is true and the server responds with an HTTP 304 (Not Modified), the loader sets is_304_for_revalidation = true and skips the CheckAccess() function entirely.

Because a compromised renderer process can arbitrarily construct Mojo IPC messages, an attacker can spoof this flag on a cross-origin, credentialed request. By doing so, they can force the Network Service to skip both the preflight request and the response access checks for 304 responses, resulting in the raw URLResponseHead (including all cross-origin HTTP headers) being forwarded back to the compromised renderer. This acts as a cross-origin information leak and an ETag/Last-Modified oracle.

Potential Reproduction Steps

Note: These are suggested theoretical steps to trigger the vulnerability. Our tooling agent does not actively execute code or PoCs.

  1. Compromise a Renderer: An attacker achieves arbitrary code execution within a sandboxed renderer process (e.g., via a V8 bug).
  2. Construct a Malicious Request: Using the network::mojom::URLLoaderFactory IPC interface, the attacker creates a network::ResourceRequest targeting a sensitive cross-origin endpoint (e.g., https://victim.example/api/user-data).
  3. Configure CORS and Credentials: The attacker sets mode = kCors and credentials_mode = kInclude.
  4. Inject Cache Headers and Spoof Flag: The attacker adds an If-None-Match: "target-etag" header and sets the is_revalidating boolean flag to true.
  5. Initiate Request: The attacker sends the CreateLoaderAndStart IPC message.
  6. Network Service Bypasses Preflight: The Network Service receives the request. Due to the spoofed is_revalidating flag, it skips the preflight requirement for the If-None-Match header.
  7. Server Responds: The victim server receives the credentialed GET request. If the ETag matches, it returns an HTTP 304 Not Modified (which typically lacks Access-Control-Allow-Origin headers).
  8. Network Service Bypasses Access Check: In CorsURLLoader::OnReceiveResponse, the network service sees is_revalidating == true and response_code == 304. It skips the CheckAccess evaluation.
  9. Data Leak: The Network Service forwards the URLResponseHead containing the raw cross-origin headers back to the renderer, allowing the attacker to read them and confirm the ETag state.

Suggested Fix

The Network Service should not rely solely on the untrusted, renderer-provided is_revalidating flag to bypass critical CORS security checks.

Potential remediation approaches:

  • Enforce Server-Side Tracking: The Network Service (e.g., the HTTP Cache layer) should track whether a request is genuinely an internal cache revalidation, rather than accepting the state directly from the IPC struct. The renderer should not dictate this state.
  • Header Filtering: If the renderer must control this flag, CorsURLLoader should strip sensitive/non-safelisted cross-origin headers from the 304 response before forwarding the URLResponseHead back to the untrusted renderer when CheckAccess is skipped.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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

The Network Service implicitly trusted a renderer-supplied boolean flag (`is_revalidating`) to relax CORS enforcement, without independently verifying that the request was a genuine cache revalidation.

Impact

An attacker could leak cross-origin headers and create credentialed ETag/Last-Modified oracles, but this requires a compromised renderer.

What the attacker needed

Compromised renderer process; ability to send Mojo IPC messages

The fix

The Network Service should track cache revalidation state itself rather than trusting the renderer, or strip sensitive headers from 304 responses when access checks are skipped.

How it was found

  1. Compromise a renderer process to gain arbitrary code execution.
  2. Use the URLLoaderFactory IPC interface to create a cross-origin request with CORS mode and credentials included.
  3. Add an If-None-Match header and set the is_revalidating flag to true.
  4. Send the CreateLoaderAndStart IPC message to the Network Service.
  5. The Network Service skips the preflight requirement due to the spoofed flag.
  6. The victim server returns 304 Not Modified, and the Network Service skips the access check, forwarding raw headers back to the 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.

CORS is a browser rule that stops a website from reading data from another site unless that site explicitly allows it. Here, the browser's network component believed a signal from the web page's code that said 'this is just a cache check', so it skipped the usual safety checks. A malicious page could abuse this to peek at another site's response headers.

What is CORS?

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

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.