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.ccservices/network/url_loader_util.ccservices/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:
// 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:
// 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:
- 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.
- Cookie-
Pathprefix 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.
- A victim has previously logged into
https://victim.com, which set an unpartitionedSameSite=None; Secure; Path=/admincookie. - 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). - The compromised renderer constructs a cross-origin subresource request via Mojo targeting
https://victim.com/admin/probe.pngwithmode=kNoCorsandcredentials_mode=kInclude. - 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, andBuildResponseHead()setswas_cookie_in_request = true. - The response is returned. Since it is cross-origin,
CorsURLLoadermarks the response type askOpaqueand sanitizes the response head, but leaveswas_cookie_in_request == trueuntouched. - The compromised renderer intercepts the
OnReceiveResponseMojo message and directly inspectsURLResponseHead.was_cookie_in_request. Observingtruereveals the cookie's existence. - The attacker repeats this fetch targeting
https://victim.com/other/probe.pngand observeswas_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:
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:
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.
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
- A victim has a cookie set for a target site, for example one restricted to a path.
- The victim visits an attacker-controlled site whose renderer is assumed compromised.
- The compromised renderer issues a cross-origin no-cors request with credentials included to a path on the target.
- The network process attaches the cookie and marks the response head as having had a cookie in the request.
- The cross-origin response is sanitised but the cookie bit is left intact.
- 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.