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.ccnet/url_request/url_request.ccservices/network/cors/cors_url_loader.ccnet/url_request/url_request_http_job.ccservices/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
- Flag Initialization: When a
network::URLLoaderis created,url_loader_util::ConfigureUrlRequest()evaluates whether the request initiator has privileges for the target URL by checking thecors::OriginAccessList. If allowed (e.g., the URL matches the extension'shost_permissions), it setsrequest->set_force_ignore_site_for_cookies(true)on the underlyingnet::URLRequest. - Redirect Handling in CORS Loader: If the target server responds with a redirect,
network::CorsURLLoader::FollowRedirect()processes it. For requests withmode: 'cors', it may restart the request, which re-evaluates permissions. However, formode: 'no-cors', it bypasses the manual restart logic and directly callsnetwork_loader_->FollowRedirect(). - Stale State Persistence: This delegates the redirect down to
net::URLRequest::Redirect(), which callsPrepareToRestart().PrepareToRestart()clears various state fields (likejob_andresponse_info_), but it does not clear theforce_ignore_site_for_cookies_flag. TheURLRequestobject retains this privileged state even though the destination URL has changed. - SameSite Bypass: A new
URLRequestHttpJobis created for the redirected URL. It reads the staleforce_ignore_site_for_cookies_flag and passes it tocookie_util::ComputeSameSiteContextForRequest(). This function sees thetrueflag and immediately returnsCookieOptions::SameSiteCookieContext::MakeInclusive(), establishing aSAME_SITE_STRICTcontext. TheCookieStoresubsequently attaches all of the victim'sSameSitecookies 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.
-
An attacker publishes an extension with limited host permissions:
host_permissions: ["https://attacker.example/*"]. -
The extension executes a
fetchrequest withmode: 'no-cors'andcredentials: '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' }); -
The server at
attacker.example/rresponds with a307 Temporary Redirect(which preserves the POST method and body) to the victim endpoint:Location: https://victim.example/transfer. -
The browser automatically follows the redirect. Because of the stale
force_ignore_site_for_cookiesflag, the resulting request tovictim.examplewill contain the user'sSameSite=StrictandSameSite=Laxcookies, successfully executing a CSRF attack despite the extension lacking permissions forvictim.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 callingurl_loader_util::ShouldForceIgnoreSiteForCookiesagainst the new target URL and updating theURLRequestaccordingly. - Option 2 (Net Layer): Clear
force_ignore_site_for_cookies_(set it tofalse) withinnet::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.
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
- An attacker publishes an extension with host permissions limited to their own domain.
- The extension sends a no-cors POST request with credentials to its permitted origin.
- The attacker's server responds with a 307 redirect to the victim endpoint.
- 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.