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

Information leak in CORS (CVE-2026-87531)

A field recording whether a cookie was sent with a request is not cleared when cross-origin responses are sanitised, so a compromised renderer could read it from the response structure. This gives a one-bit oracle that could reveal whether a cookie exists for a target site and hint at its path restriction.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 60 days

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: The URLResponseHead.was_cookie_in_request field is derived from client-side cookie-jar state but is not cleared during cross-origin response sanitization in the network process. A compromised renderer can potentially read this field directly from the Mojo URLResponseHead struct for opaque cross-origin or ORB-blocked responses. This creates a potential 1-bit cross-origin oracle that leaks cookie existence and allows cookie path-prefix enumeration.

Affected files:

  • services/network/cors/cors_url_loader.cc
  • services/network/url_loader_util.cc
  • services/network/orb/orb_api.cc

Estimated timestamp from git blame: 2020-09-24

Description

When a network response is processed, url_loader_util::BuildResponseHead() populates the was_cookie_in_request field in URLResponseHead to indicate whether a cookie was sent with the corresponding request:

C++
// services/network/url_loader_util.cc
response->was_cookie_in_request = std::ranges::any_of(
    url_request.maybe_sent_cookies(),
    [](const auto& cookie_with_access_result) {
      return cookie_with_access_result.access_result.status.IsInclude();
    });

Under Chrome's post-compromise Site Isolation security model, a compromised renderer must not be able to obtain sensitive cross-origin data. To prevent cross-origin leaks, CorsURLLoader sanitizes certain client-side-state fields (such as did_use_server_http_auth and device_bound_session_usage) when forwarding non-kBasic (cross-origin) responses to the renderer:

C++
// services/network/cors/cors_url_loader.cc
if (response_head->response_type != mojom::FetchResponseType::kBasic) {
  response_head->device_bound_session_usage =
      mojom::DeviceBoundSessionUsage::kUnknown;
  response_head->did_use_server_http_auth = false;
}

However, was_cookie_in_request is not cleared by this block. The identical two-field-only sanitization also repeats on both redirect forwarding paths in cors_url_loader.cc (at kOpaqueRedirect early-returns and normal redirects). Furthermore, ORB's blocked-response header strip (SanitizeBlockedResponseHeaders in services/network/orb/orb_api.cc) also leaves the field intact.

Consequently, even if a cross-origin response is opaque or blocked by ORB, the was_cookie_in_request bit is forwarded untouched to the renderer process over Mojo inside the URLResponseHead structure.

Potential Impact

A compromised renderer can potentially abuse this behavior to obtain a 1-bit oracle of whether a specific SameSite=None cookie exists in the user's profile for any target cross-origin host. This leads to:

  1. Cross-origin visit/login-state disclosure: Verifying if an unpartitioned cookie exists for a specific site reveals if the user has previously authenticated to/visited that site.
  2. Cookie-Path prefix enumeration: Probing different resource paths allows the attacker to determine the restricted path of a cookie via path-matching results (disclosing sensitive site context).

This vulnerability is relevant under configurations where cross-site cookies are allowed (e.g., prior to full 3PCD rollout, under enterprise policies, per-site cookie exceptions, Related Website Sets, or Storage Access API grants).

Potential Step-by-Step Exploitation Scenario

Note: The following are suggested/potential steps, as our tooling agent does not currently have the ability to run code or construct a live proof-of-concept.

  1. A victim has previously logged into https://victim.com, which set an unpartitioned SameSite=None; Secure; Path=/admin cookie.
  2. The user visits an attacker-controlled site, https://evil.com, which runs in its own sandboxed renderer process but is assumed to be compromised (post-compromise threat model).
  3. The compromised renderer constructs a cross-origin subresource request via Mojo targeting https://victim.com/admin/probe.png with mode=kNoCors and credentials_mode=kInclude.
  4. The network process validates and executes the request. Since credentials are included and third-party cookies are allowed for the pair, the unpartitioned cookie is attached. url_request.maybe_sent_cookies() records this, and BuildResponseHead() sets was_cookie_in_request = true.
  5. The response is returned. Since it is cross-origin, CorsURLLoader marks the response type as kOpaque and sanitizes the response head, but leaves was_cookie_in_request == true untouched.
  6. The compromised renderer intercepts the OnReceiveResponse Mojo message and directly inspects URLResponseHead.was_cookie_in_request. Observing true reveals the cookie's existence.
  7. The attacker repeats this fetch targeting https://victim.com/other/probe.png and observes was_cookie_in_request == false, thereby learning both the login status and the specific cookie path restriction (Path=/admin).

Suggested Fix

Sanitize the was_cookie_in_request field in CorsURLLoader whenever the response is cross-origin. Specifically, clear it alongside did_use_server_http_auth inside services/network/cors/cors_url_loader.cc across all three sanitization paths:

C++
if (response_head->response_type != mojom::FetchResponseType::kBasic) {
  response_head->device_bound_session_usage =
      mojom::DeviceBoundSessionUsage::kUnknown;
  response_head->did_use_server_http_auth = false;
  response_head->was_cookie_in_request = false; // Fix
}

Additionally, as a defense-in-depth measure, clear the field in ORB's response sanitization in services/network/orb/orb_api.cc:

C++
void SanitizeBlockedResponseHeaders(network::mojom::URLResponseHead& response) {
  response.content_length = 0;
  response.was_cookie_in_request = false; // Fix
  if (response.headers)
    RemoveAllHttpResponseHeaders(response.headers);
}

Evaluated with Chrome root at commit: b5b015ea5f690560237d1f0cff1405844cd12b8d


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.

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 cross-origin response sanitisation in CorsURLLoader and ORB clears some client-side-state fields but omits was_cookie_in_request, so the bit is forwarded to the renderer.

Impact

A compromised renderer could learn whether a cookie exists for a target site and enumerate its path prefix, but only where cross-site cookies are allowed, such as enterprise policies, per-site exceptions, Related Website Sets or Storage Access API grants.

What the attacker needed

Compromised renderer process; cross-site cookies allowed for the pair; victim has a cookie on the target site

The fix

The field should be cleared alongside the other client-side-state fields in all cross-origin sanitisation paths, and also in ORB's blocked-response header stripping as defence in depth.

How it was found

  1. A victim has a cookie set for a target site, for example one restricted to a path.
  2. The victim visits an attacker-controlled site whose renderer is assumed compromised.
  3. The compromised renderer issues a cross-origin no-cors request with credentials included to a path on the target.
  4. The network process attaches the cookie and marks the response head as having had a cookie in the request.
  5. The cross-origin response is sanitised but the cookie bit is left intact.
  6. The renderer reads the bit, then repeats against other paths to infer the cookie's path restriction.

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 fetches something from another site, it hides details about that site from the page. One hidden detail is whether the browser sent a stored cookie along with the request. Here that detail was left visible to the page's process, so a page that has already been taken over could peek at it and learn whether you have an account or cookie on another site.

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.