Skip to content
CSRF Advisory Advanced CVE-2026-113202

Confused deputy in BrowserTag (CVE-2026-113202)

A logic error in WebViewGuest discards the flags that mark a navigation as renderer-initiated and record its initiator origin, so the browser treats it as browser-initiated. A compromised webview guest renderer could then send cross-site requests that carry SameSite=Strict cookies and a Sec-Fetch-Site: none header, enabling CSRF against origins in the same storage partition.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Flapjack, 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: A logic error in WebViewGuest drops the is_renderer_initiated and initiator_origin flags when a <webview> guest initiates certain navigations. This causes the navigation to be incorrectly classified as browser-initiated, granting it elevated trust. An attacker in a compromised guest renderer can exploit this to bypass SameSite=Strict and Sec-Fetch-Site protections, enabling Cross-Site Request Forgery (CSRF).

Affected files:

  • extensions/browser/guest_view/web_view/web_view_guest.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A vulnerability in WebViewGuest allows a compromised <webview> guest renderer to perform "navigation laundering." When a renderer-initiated navigation is processed via WebViewGuest::OpenURLFromTab or CreateNewGuestWebViewWindow, the parameters indicating the navigation's origin are lost. Consequently, the browser treats the resulting request as a highly-trusted, browser-initiated navigation (equivalent to a user typing a URL into the address bar). This elevated trust bypasses SameSite=Strict cookie policies and sets Fetch Metadata headers to Sec-Fetch-Site: none, facilitating Cross-Site Request Forgery (CSRF) against target origins within the same StoragePartition as the guest.

Vulnerability Details

When a <webview> guest renderer initiates an OpenURL request (e.g., via window.open targeting a remote frame, or a compromised renderer sending a direct Mojo IPC), the request reaches content::RenderFrameHostImpl::OpenURL. The browser securely identifies the source and creates a content::OpenURLParams object with is_renderer_initiated = true and the correct initiator_origin.

The request is eventually delegated to the guest's handler, WebViewGuest::OpenURLFromTab (extensions/browser/guest_view/web_view/web_view_guest.cc). For navigations with WindowOpenDisposition::CURRENT_TAB, the code routes the request to LoadURLWithParams:

C++
  if (params.disposition == WindowOpenDisposition::CURRENT_TAB) {
    LoadURLWithParams(params.url, params.referrer, params.transition,
                      std::move(navigation_handle_callback),
                      true /* force_navigation */);
    return web_contents();
  }

Crucially, LoadURLWithParams only extracts the URL, referrer, and transition type. The is_renderer_initiated and initiator_origin fields are discarded.

Inside WebViewGuest::LoadURLWithParams, a new content::NavigationController::LoadURLParams object is constructed:

C++
  content::NavigationController::LoadURLParams load_url_params(validated_url);
  load_url_params.referrer = referrer;
  // ... fields are populated, but initiator state is omitted ...
  GetController().LoadURLWithParams(load_url_params);

Because is_renderer_initiated and initiator_origin are not explicitly set on load_url_params, they fall back to their defaults (false and std::nullopt, respectively). The navigation stack (NavigationRequest) then processes this as a browser_initiated navigation.

A similar propagation failure occurs when a new window disposition is used (e.g., via CreateNewGuestWebViewWindow). The target URL is stored in a NewWindowInfo struct that lacks initiator fields. When the new guest attaches, it calls NavigateGuest, which eventually calls LoadURLWithParams, resulting in the same loss of context.

Security Impact

By laundering a renderer-initiated navigation into a browser-initiated one, a compromised renderer can bypass standard web security boundaries:

  1. SameSite=Strict Cookie Bypass: Because the navigation lacks an initiator origin, the network stack treats it as a same-site context (net/cookies/cookie_util.cc). The browser will attach SameSite=Strict cookies to the cross-site request, facilitating CSRF against authenticated services used within the <webview>'s storage partition.
  2. Fetch Metadata (Sec-Fetch-Site) Bypass: The network service generates the Sec-Fetch-Site header based on the request initiator. Since the initiator is null, it outputs Sec-Fetch-Site: none (services/network/sec_header_helpers.cc), blinding server-side CSRF protections that rely on this header to block cross-origin initiators.

Suggested Exploitation Steps

(Note: These are potential steps; our tooling has not executed a working proof of concept)

  1. An attacker achieves code execution in a <webview> guest renderer process.
  2. The attacker identifies a target site within the same StoragePartition vulnerable to CSRF via GET requests or top-level navigations (protected only by SameSite=Strict cookies or Sec-Fetch-Site).
  3. The attacker constructs a mojom::FrameHost::OpenURL Mojo IPC message targeting the vulnerable endpoint, setting the disposition to CURRENT_TAB.
  4. The renderer sends the IPC to the browser process.
  5. The browser drops the initiator context in WebViewGuest and issues the request with SameSite=Strict cookies attached and Sec-Fetch-Site: none, successfully executing the CSRF payload.

Suggested Fix

Update the signature of WebViewGuest::LoadURLWithParams and WebViewGuest::NavigateGuest (and the intermediate NewWindowInfo struct) to accept the is_renderer_initiated and initiator_origin fields, or ideally, the entire content::OpenURLParams object where applicable. Ensure that when content::NavigationController::LoadURLParams is constructed in LoadURLWithParams, the is_renderer_initiated and initiator_origin fields are explicitly transferred from the originating request.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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, WebViewGuest::LoadURLWithParams rebuilds the navigation parameters from only the URL, referrer and transition type, so the is_renderer_initiated and initiator_origin fields default to browser-initiated values.

Impact

A compromised renderer could bypass SameSite=Strict cookies and Sec-Fetch-Site checks to perform CSRF against origins in the same storage partition, though the report notes no working proof of concept was executed.

What the attacker needed

Code execution in a webview guest renderer; target in the same storage partition; target relies on SameSite or Sec-Fetch-Site

The fix

The parameters should be extended to carry is_renderer_initiated and initiator_origin, or the whole OpenURLParams object, and those fields should be explicitly transferred when the navigation parameters are rebuilt.

How it was found

  1. Gain code execution in a webview guest renderer process.
  2. Find a target in the same storage partition that relies on SameSite=Strict cookies or Sec-Fetch-Site for CSRF protection.
  3. Build an OpenURL IPC message to the vulnerable endpoint with the current-tab disposition.
  4. Send the IPC from the renderer to the browser process.
  5. The browser drops the initiator context and issues the request with strict cookies attached and Sec-Fetch-Site: none.

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.

A webview is an embedded browser frame inside an app. Normally the browser remembers whether a page or the app itself asked to open a link, because that decides how much it is trusted. Here that memory is lost, so a request from a compromised embedded page looks as if the user typed the address themselves, which lets it slip past cookie and header protections meant to stop cross-site requests.

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.