Skip to content
CSRF Advisory Advanced CVE-2026-87447

Incorrect authorization in Network (CVE-2026-87447)

A logic flaw in Chrome's network service allows a malicious extension to bypass its declared host permissions and SameSite cookie protections. By initiating a no-cors request to a permitted origin that redirects to an arbitrary target, a permission flag persists across the redirect, enabling cross-origin POST requests with the victim's SameSite=Strict and SameSite=Lax cookies attached.

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 Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.

Overview: A logic flaw in the network service may allow a malicious extension to bypass its declared host_permissions and SameSite cookie protections. By initiating a no-cors request to a permitted origin that redirects to an arbitrary target, a permission flag persists across the redirect. This results in a potential CSRF primitive where SameSite=Strict and SameSite=Lax cookies are inappropriately attached to the cross-origin request.

Affected files:

  • services/network/url_loader_util.cc
  • net/url_request/url_request.cc
  • services/network/cors/cors_url_loader.cc
  • net/url_request/url_request_http_job.cc
  • services/network/url_loader.cc

Estimated timestamp from git blame: 2026-03-05

Summary

There is a potential vulnerability in how the Network Service handles redirects for no-cors requests initiated by Chrome extensions. The force_ignore_site_for_cookies flag, which grants extensions the ability to attach first-party cookies to requests targeting origins they have explicit permissions for, is not cleared during a redirect. If a no-cors request redirects to a cross-origin domain, the stale flag forces the network stack to compute an inclusive SAME_SITE_STRICT cookie context. This allows an extension with permissions to a single attacker-controlled domain to execute cross-origin POST requests with the victim's SameSite=Strict and SameSite=Lax cookies attached.

Technical Details

  1. Flag Initialization: When a network::URLLoader is created, url_loader_util::ConfigureUrlRequest() evaluates whether the request initiator has privileges for the target URL by checking the cors::OriginAccessList. If allowed (e.g., the URL matches the extension's host_permissions), it sets request->set_force_ignore_site_for_cookies(true) on the underlying net::URLRequest.
  2. Redirect Handling in CORS Loader: If the target server responds with a redirect, network::CorsURLLoader::FollowRedirect() processes it. For requests with mode: 'cors', it may restart the request, which re-evaluates permissions. However, for mode: 'no-cors', it bypasses the manual restart logic and directly calls network_loader_->FollowRedirect().
  3. Stale State Persistence: This delegates the redirect down to net::URLRequest::Redirect(), which calls PrepareToRestart(). PrepareToRestart() clears various state fields (like job_ and response_info_), but it does not clear the force_ignore_site_for_cookies_ flag. The URLRequest object retains this privileged state even though the destination URL has changed.
  4. SameSite Bypass: A new URLRequestHttpJob is created for the redirected URL. It reads the stale force_ignore_site_for_cookies_ flag and passes it to cookie_util::ComputeSameSiteContextForRequest(). This function sees the true flag and immediately returns CookieOptions::SameSiteCookieContext::MakeInclusive(), establishing a SAME_SITE_STRICT context. The CookieStore subsequently attaches all of the victim's SameSite cookies to the cross-origin request.

Potential Reproduction Steps

Note: Our tooling agent does not have the ability to run live code, so these are potential steps based on static analysis.

  1. An attacker publishes an extension with limited host permissions: host_permissions: ["https://attacker.example/*"].

  2. The extension executes a fetch request with mode: 'no-cors' and credentials: 'include', sending a POST payload to its permitted origin:

    JavaScript
    fetch('https://attacker.example/r', {
      mode: 'no-cors',
      method: 'POST',
      credentials: 'include',
      headers: {'Content-Type': 'application/x-www-form-urlencoded'},
      body: 'action=transfer&amount=1000'
    });
    
  3. The server at attacker.example/r responds with a 307 Temporary Redirect (which preserves the POST method and body) to the victim endpoint: Location: https://victim.example/transfer.

  4. The browser automatically follows the redirect. Because of the stale force_ignore_site_for_cookies flag, the resulting request to victim.example will contain the user's SameSite=Strict and SameSite=Lax cookies, successfully executing a CSRF attack despite the extension lacking permissions for victim.example.

Suggested Fix

The force_ignore_site_for_cookies state must be correctly scoped to the specific URL hop, not the lifetime of the URLRequest.

  • Option 1 (Network Service Layer): In network::URLLoader::FollowRedirect(), explicitly re-evaluate the permission by calling url_loader_util::ShouldForceIgnoreSiteForCookies against the new target URL and updating the URLRequest accordingly.
  • Option 2 (Net Layer): Clear force_ignore_site_for_cookies_ (set it to false) within net::URLRequest::PrepareToRestart(). This ensures that any privileges granted to a specific request hop are completely stripped before the redirect is followed, requiring higher layers (like the Network Service) to explicitly re-grant them if applicable.

Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09


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

Likely the force_ignore_site_for_cookies flag is not cleared when a no-cors request is redirected, so the privileged state persists to the new URL.

Impact

A malicious extension could execute cross-origin POST requests with the victim's SameSite=Strict and SameSite=Lax cookies attached, enabling CSRF attacks.

What the attacker needed

Victim installs a malicious extension; extension has host permissions for attacker domain; victim visits a page that triggers the extension

The fix

The force_ignore_site_for_cookies state should be scoped to the specific URL hop, either by re-evaluating permissions on redirect or by clearing the flag in PrepareToRestart().

How it was found

  1. An attacker publishes an extension with host permissions limited to their own domain.
  2. The extension sends a no-cors POST request with credentials to its permitted origin.
  3. The attacker's server responds with a 307 redirect to the victim endpoint.
  4. The browser follows the redirect, and due to the stale flag, the request to the victim includes SameSite cookies.

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 website sets a cookie, it can mark it SameSite to stop other sites from sending it along with their requests. This report says a browser extension could trick the browser into sending those protected cookies to a different site after a redirect, because a permission flag was not reset. That could let an attacker make actions happen on the victim's behalf without their knowledge.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.