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

Insufficient policy enforcement in Fenced Frames (CVE-2026-11217)

A fenced frame's `_unfencedTop` navigation forwarded the renderer-supplied initiator origin to the browser instead of replacing it with an opaque origin, so the destination server learned the fenced frame's real origin through the `Sec-Fetch-Site` header. A compromised renderer could therefore reveal which ad or content was displayed inside a fenced frame, breaking the Privacy Sandbox isolation guarantee.

Tianyi Hu Follow

Originally disclosed on Chrome VRP

Bounty$3,000 Low View original
  • Fix shipped in 3 months

Report description

Fenced frame _unfencedTop navigation leaks initiator_origin to destination via Sec-Fetch-Site


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/render_frame_host_impl.cc


The problem

Please describe the technical details of the vulnerability

RenderFrameHostImpl::OpenURL() contains a commented-out TODO (crbug.com/40221940) that was supposed to replace the renderer-supplied initiator_origin with an opaque origin before forwarding a _unfencedTop navigation to NavigateFromFrameProxy(). The fix was never completed: // url::Origin initiator_origin; remains commented out, and params->initiator_origin — fully controlled by the renderer — is passed directly to NavigateFromFrameProxy().

A compromised fenced frame renderer can set initiator_origin to any origin its process hosts, causing the browser to forward the fenced frame's real identity to the destination server via Sec-Fetch-Site, violating the Privacy Sandbox isolation requirement.

Vulnerable files:

Vulnerable code:

C++
// In RenderFrameHostImpl::OpenURL(), inside the is_unfenced_top_navigation block:

// TODO(crbug.com/40221940): Null out the initiator origin, frame token, and
// site instance.
// We use an opaque `initiator_origin` in order to avoid leaking
// information from the fenced frame to its embedder. (The navigation will
// be treated as cross-origin unconditionally.) We don't need to provide a
// `source_site_instance`.
// url::Origin initiator_origin;    // <── FIX IS COMMENTED OUT

// ...

target_frame->frame_tree_node()->navigator().NavigateFromFrameProxy(
    ..., params->initiator_origin,  // <── RENDERER VALUE FORWARDED UNCHANGED
    ..., /*is_unfenced_top_navigation=*/true, ...);

Transmission chain:

  1. Fenced frame renderer calls RenderFrameImpl::OpenURL() with is_unfenced_top_navigation=true.
  2. Renderer sets params->initiator_origin = info->url_request.RequestorOrigin() — the real fenced frame origin. A compromised renderer can set this to any origin its process hosts.
  3. params is sent to the browser via the LocalFrameHost::OpenURL Mojo IPC (OpenURLParams struct in remote_frame.mojom).
  4. In RenderFrameHostImpl::OpenURL(), the browser validates the origin with VerifyInitiatorOrigin() (passes, since the process does host the origin), then enters the _unfencedTop code path.
  5. The TODO fix (url::Origin initiator_origin;) is commented out and has no effect.
  6. params->initiator_origin (the real fenced frame origin) is passed directly to NavigateFromFrameProxy(), which stores it in FrameNavigationEntry and forwards it in CommonNavigationParams.
  7. The network service sets Sec-Fetch-Site on the outgoing request using the stored initiator origin. If the fenced frame and destination share the same origin, Chrome sets Sec-Fetch-Site: same-origin instead of the required cross-site.

Steps to reproduce:

  1. git apply m2_poc_patch.diff in the stable checkout
  2. autoninja -C out/Default chrome -j8
  3. Place index.html, fenced.html, and serve.py in the same directory, then start the HTTP server:
    • python3 serve.py
  4. Launch patched Chrome and observe:
    • out/Default/Chromium.app/Contents/MacOS/Chromium --enable-blink-features=FencedFramesDefaultMode --user-data-dir=/tmp/chrome-m2-test http://localhost:8080/index.html
    • After ~2 seconds, server stdout shows: [*] /destination Sec-Fetch-Site: same-origin
    • The fenced frame's origin has leaked. Privacy Sandbox isolation is violated.

m2_poc_patch.diff simulates a compromised renderer by forging user_gesture=true for _unfencedTop navigations, bypassing ValidateUnfencedTopNavigation() so the navigation proceeds without user interaction. The renderer's real initiator_origin (the fenced frame's origin) flows through unchanged — the bug is that the browser forwards it to NavigateFromFrameProxy() instead of replacing it with an opaque origin. FencedFramesDefaultMode enables the FencedFrameConfig URL constructor for testing; in production, fenced frames are created via Protected Audience or Shared Storage APIs.

Bisect:

Introducing commit: a42fdef8ad1898f97e34eaf8b74f0d3a82361d29

Evidence:

  • M104 (104.0.5112.0): "Null out the initiator origin" pattern is absent (grep count = 0)
  • M105 (105.0.5195.0): pattern is present (grep count = 1)
  • Parent commit (a42fdef^): pattern absent — the diff shows these lines being added
  • Commit a42fdef: pattern present — introduces the TODO + commented-out url::Origin initiator_origin;

Earliest affected: Chrome M105 (stable August 30, 2022). Latest confirmed: Chrome M145 (145.0.7632.117, current Stable). Vulnerable for ~3.5 years.

Suggested fix:

m2_fix.diff is attached. Uncomment and activate the opaque origin, then use it instead of params->initiator_origin in the NavigateFromFrameProxy() call:

Diff
-    // TODO(crbug.com/40221940): Null out the initiator origin, ...
-    // url::Origin initiator_origin;
+    url::Origin initiator_origin;

-        GetProcess()->GetDeprecatedID(), params->initiator_origin,
+        GetProcess()->GetDeprecatedID(), initiator_origin,

A default-constructed url::Origin is opaque, so the destination server will see Sec-Fetch-Site: cross-site — matching the Privacy Sandbox requirement. Normal (non-fenced-frame) navigations are unaffected because they do not enter the is_unfenced_top_navigation code path.

I will upload a Gerrit CL and add the link in a follow-up comment.

Impact analysis

A compromised renderer inside a fenced frame (e.g., via renderer RCE in a third-party ad delivered via Protected Audience/FLEDGE) can set initiator_origin to its real origin. The browser forwards this to the destination server via Sec-Fetch-Site, revealing the fenced frame's content identity.

The Privacy Sandbox guarantee for fenced frames is that the embedding page and the fenced frame cannot identify each other. Leaking the fenced frame's origin to the destination of a _unfencedTop navigation breaks this by:

  • Allowing the destination server to identify what ad/content was displayed in the fenced frame
  • Enabling cross-context correlation that the Privacy Sandbox is specifically designed to prevent
  • Leaking via standard HTTP headers (Sec-Fetch-Site, Referer if applicable) that are routinely logged

The Chromium code itself acknowledges this is a bug (crbug.com/40221940 appears three times in the same function) and documents the intended fix — it was simply never activated.

Exploitation requires a compromised renderer (renderer RCE), which is a standard assumption in Chrome's security model.


The cause

What version of Chrome have you found the security issue in?

145.0.7632.117 (Stable, current as of February 2026)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Site Isolation Bypass

How would you like to be publicly acknowledged for your report?

Tianyi Hu

The original report as published on the Chromium issue tracker, by Tianyi Hu. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

Fenced frames are a Privacy Sandbox primitive in Chrome. Their central guarantee is isolation: the embedding page and the fenced frame cannot identify each other. In production, fenced frames are created through the Protected Audience or Shared Storage APIs, and the FencedFrameConfig URL constructor is available for testing behind the FencedFramesDefaultMode Blink feature.

One of the operations a fenced frame can perform is a _unfencedTop navigation, which navigates the top-level frame out of the fenced frame context. Because that navigation leaves the fence, the browser is supposed to treat it as cross-origin unconditionally, so that the destination cannot learn anything about the fenced frame that initiated it. The report shows that this policy is not enforced: the fenced frame's real origin reaches the destination server in the Sec-Fetch-Site request header.

The issue was reported through the Chrome Vulnerability Reward Program and tracked as CVE-2026-11217, an insufficient policy enforcement flaw in Fenced Frames. It was rated low severity and paid a bounty of 3,000 USD. The researcher is Tianyi Hu, and the report was disclosed on 2 June 2026.

Setup

The vulnerable code lives in three places:

  • Renderer: content/renderer/render_frame_impl.cc
  • Mojo definition: third_party/blink/public/mojom/frame/remote_frame.mojom
  • Browser: content/browser/renderer_host/render_frame_host_impl.cc

The issue was confirmed on Chrome 145.0.7632.117 (Stable at the time of the report, February 2026). Reproduction requires a patched build of Chrome, a local HTTP server, and three files placed in the same directory: index.html, fenced.html and serve.py. The proof of concept is applied as m2_poc_patch.diff to a stable checkout.

The patch simulates a compromised renderer by forging user_gesture=true for _unfencedTop navigations, which bypasses ValidateUnfencedTopNavigation() so the navigation proceeds without user interaction. This matters because the report's threat model assumes a compromised renderer, which is a standard assumption in Chrome's security model. The renderer's real initiator_origin, the fenced frame's origin, then flows through unchanged; the bug is that the browser forwards it to NavigateFromFrameProxy() instead of replacing it with an opaque origin.

Finding it

The starting point is RenderFrameHostImpl::OpenURL(). Inside the is_unfenced_top_navigation block there is a commented-out TODO referencing crbug.com/40221940, which was supposed to replace the renderer-supplied initiator_origin with an opaque origin before forwarding the navigation to NavigateFromFrameProxy(). The fix was never completed: the declaration // url::Origin initiator_origin; remains commented out, and params->initiator_origin, fully controlled by the renderer, is passed directly to NavigateFromFrameProxy().

The vulnerable code, as quoted in the report:

C++
// In RenderFrameHostImpl::OpenURL(), inside the is_unfenced_top_navigation block:

// TODO(crbug.com/40221940): Null out the initiator origin, frame token, and
// site instance.
// We use an opaque `initiator_origin` in order to avoid leaking
// information from the fenced frame to its embedder. (The navigation will
// be treated as cross-origin unconditionally.) We don't need to provide a
// `source_site_instance`.
// url::Origin initiator_origin;    // <── FIX IS COMMENTED OUT

// ...

target_frame->frame_tree_node()->navigator().NavigateFromFrameProxy(
    ..., params->initiator_origin,  // <── RENDERER VALUE FORWARDED UNCHANGED
    ..., /*is_unfenced_top_navigation=*/true, ...);

The comment states the intent plainly: an opaque initiator_origin avoids leaking information from the fenced frame to its embedder, and the navigation is meant to be treated as cross-origin unconditionally. The code does neither, because the line that would create the opaque origin is commented out and the renderer's value is used instead.

Exploitation

Step 1: Call OpenURL from the fenced frame renderer

The fenced frame renderer calls RenderFrameImpl::OpenURL() with is_unfenced_top_navigation=true.

Step 2: Set the initiator origin

The renderer sets params->initiator_origin = info->url_request.RequestorOrigin(), the real fenced frame origin. A compromised renderer can set this to any origin its process hosts.

Step 3: Send the parameters over Mojo

params is sent to the browser via the LocalFrameHost::OpenURL Mojo IPC, using the OpenURLParams struct defined in remote_frame.mojom.

Step 4: Browser-side validation

In RenderFrameHostImpl::OpenURL(), the browser validates the origin with VerifyInitiatorOrigin(). This passes, since the process does host the origin, and execution enters the _unfencedTop code path.

Step 5: The commented-out fix has no effect

The TODO fix (url::Origin initiator_origin;) is commented out and does nothing.

Step 6: The renderer value is forwarded

params->initiator_origin, the real fenced frame origin, is passed directly to NavigateFromFrameProxy(), which stores it in FrameNavigationEntry and forwards it in CommonNavigationParams.

Step 7: Sec-Fetch-Site is computed from the leaked origin

The network service sets Sec-Fetch-Site on the outgoing request using the stored initiator origin. If the fenced frame and the destination share the same origin, Chrome sets Sec-Fetch-Site: same-origin instead of the required cross-site.

Reproducing it

The report gives these steps:

  1. git apply m2_poc_patch.diff in the stable checkout
  2. autoninja -C out/Default chrome -j8
  3. Place index.html, fenced.html and serve.py in the same directory, then start the HTTP server:
Bash
python3 serve.py
  1. Launch patched Chrome and observe:
Bash
out/Default/Chromium.app/Contents/MacOS/Chromium --enable-blink-features=FencedFramesDefaultMode --user-data-dir=/tmp/chrome-m2-test http://localhost:8080/index.html

After about two seconds, the server stdout shows:

Text
[*] /destination  Sec-Fetch-Site: same-origin

The fenced frame's origin has leaked, and Privacy Sandbox isolation is violated. The FencedFramesDefaultMode flag enables the FencedFrameConfig URL constructor for testing; in production, fenced frames are created via the Protected Audience or Shared Storage APIs.

Root cause

The browser trusts a renderer-supplied initiator_origin for _unfencedTop navigations. The intended design, documented in the code comment itself, is to substitute an opaque origin so the navigation is unconditionally cross-origin. The substitution was written but left commented out, so the renderer's value is forwarded unchanged into NavigateFromFrameProxy() and from there into the network service's Sec-Fetch-Site computation.

The existing check, VerifyInitiatorOrigin(), does not stop this. It only confirms that the process hosts the origin being claimed, which is exactly the case here: the renderer claims the fenced frame's real origin, and the process does host it. The check is about plausibility, not about the fenced frame policy.

The report also bisects the change. The introducing commit is [redacted], authored by Garrett Tanzer on Mon Jun 13, 2022, with the message "Fenced Frames: _unfencedTop MPArch partial refactor" (CL https://chromium-review.googlesource.com/c/chromium/src/+/3615129, Cr-Commit-Position refs/heads/main@{#1013498}). The evidence:

  • M104 (104.0.5112.0): the "Null out the initiator origin" pattern is absent (grep count = 0)
  • M105 (105.0.5195.0): the pattern is present (grep count = 1)
  • Parent commit (a42fdef^): pattern absent, and the diff shows these lines being added
  • Commit a42fdef: pattern present, introducing the TODO and the commented-out url::Origin initiator_origin;

Earliest affected is Chrome M105 (stable 30 August 2022); latest confirmed is Chrome M145 (145.0.7632.117, current Stable). The vulnerable period is roughly 3.5 years. The Chromium code itself acknowledges the bug: crbug.com/40221940 appears three times in the same function, and the intended fix is documented there, it was simply never activated.

Impact

A compromised renderer inside a fenced frame, for example via renderer RCE in a third-party ad delivered through Protected Audience or FLEDGE, can set initiator_origin to its real origin. The browser forwards this to the destination server via Sec-Fetch-Site, revealing the fenced frame's content identity.

The Privacy Sandbox guarantee for fenced frames is that the embedding page and the fenced frame cannot identify each other. Leaking the fenced frame's origin to the destination of a _unfencedTop navigation breaks this by:

  • Allowing the destination server to identify what ad or content was displayed in the fenced frame
  • Enabling cross-context correlation that the Privacy Sandbox is specifically designed to prevent
  • Leaking via standard HTTP headers (Sec-Fetch-Site, and Referer if applicable) that are routinely logged

Exploitation requires a compromised renderer (renderer RCE), which is a standard assumption in Chrome's security model. The report's vulnerability type is Site Isolation Bypass, and it states the issue is not related to a crash.

Fix

The report attaches m2_fix.diff. The fix uncomments and activates the opaque origin, then uses it instead of params->initiator_origin in the NavigateFromFrameProxy() call:

Diff
-    // TODO(crbug.com/40221940): Null out the initiator origin, ...
-    // url::Origin initiator_origin;
+    url::Origin initiator_origin;

-        GetProcess()->GetDeprecatedID(), params->initiator_origin,
+        GetProcess()->GetDeprecatedID(), initiator_origin,

A default-constructed url::Origin is opaque, so the destination server will see Sec-Fetch-Site: cross-site, matching the Privacy Sandbox requirement. Normal, non-fenced-frame navigations are unaffected because they do not enter the is_unfenced_top_navigation code path. The researcher said a Gerrit CL would be uploaded and linked in a follow-up comment.

Variants to test

  • Other navigation paths that carry a renderer-supplied initiator origin. Look for other call sites of NavigateFromFrameProxy() where the initiator origin comes from Mojo parameters rather than being constructed in the browser. A positive result is a destination server observing Sec-Fetch-Site or Referer values that reflect the source frame's real origin where the design requires an opaque or cross-site value.
  • Other fenced frame operations that leave the fence. Enumerate the operations gated by is_unfenced_top_navigation or similar flags and check whether each one substitutes an opaque origin, frame token and site instance as the TODO comment describes. A positive result is any of those values reaching the network service unchanged from the renderer.
  • Validation checks that only confirm process ownership. VerifyInitiatorOrigin() accepts any origin the process hosts. Test other browser-side checks with the same shape: if a compromised renderer can claim any origin it hosts, the check provides no isolation. A positive result is a policy-relevant value that passes validation and then influences a header, a permission decision or a storage partition.
  • Header computation from stored navigation state. Trace how FrameNavigationEntry and CommonNavigationParams feed Sec-Fetch-Site, Sec-Fetch-Mode and Referer. A positive result is a header that reveals the initiator's identity in a context where the specification or the feature's design says it must not.
  • Commented-out security code. Grep for commented-out declarations and TODOs referencing security bugs in navigation and frame code. A positive result is a documented mitigation that is present in the source but never executed, as happened here.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

Chrome has a feature called fenced frames. Think of a fenced frame as a sealed glass box inside a web page: the page can show what is inside the box, but the page and the box are not supposed to be able to recognise each other. This is part of a set of Chrome features called the Privacy Sandbox, whose goal is to let websites show ads and do other useful things without tracking people across the web.

A fenced frame is allowed to do one special trick: it can navigate the whole browser tab to a new page, leaving the box behind. This is called a _unfencedTop navigation. Because the navigation leaves the fence, Chrome is supposed to make sure the destination website learns nothing about the fenced frame that sent it there. In technical terms, the navigation must always look cross-origin (coming from a different website).

The report shows that this rule is not actually enforced. When the fenced frame starts that navigation, Chrome sends the destination server a standard HTTP header called Sec-Fetch-Site, and that header can say same-origin instead of the required cross-site. In plain words: the destination website can tell which website the fenced frame really was, which breaks the whole point of the sealed box.

The problem was reported through the Chrome Vulnerability Reward Program (Chrome VRP), a scheme where Google pays people who find and report security bugs in Chrome. It was tracked as CVE-2026-11217. A CVE is a public catalogue number given to a known security flaw so everyone can refer to the same thing. The flaw was rated low severity and paid a bounty of 3,000 USD. The researcher is Tianyi Hu, and the report was disclosed on 2 June 2026.

The pieces involved

Before the details, here are the parts of Chrome the report talks about.

  • Renderer: the part of Chrome that actually draws a web page and runs its JavaScript. Chrome runs each website in its own renderer process, a separate program with limited powers, so that a bug in one site cannot easily read another site's data. A process is simply a running program with its own memory.
  • Browser process: the central, more powerful part of Chrome that coordinates everything and decides what renderers are allowed to do.
  • Mojo: Chrome's internal messaging system. Different parts of Chrome talk to each other by sending structured messages over Mojo, a bit like passing notes between colleagues. An IPC (inter-process communication) is exactly that: one process sending a message to another.
  • Origin: the combination of protocol, host and port that identifies a website, for example https://example.com. Two pages with the same origin are treated as the same website; different origins are treated as different websites. This is the core of the browser's security model.
  • Opaque origin: a deliberately meaningless origin, one that matches nothing. It is the browser's way of saying "this request comes from nowhere in particular".
  • Sec-Fetch-Site: an HTTP header that browsers attach to requests to tell the server how the request relates to the page that made it. Values include same-origin (same website), cross-site (different website) and others. Servers use it for security decisions and routinely log it.
  • Referer: another HTTP header that can carry the address of the page that linked to the requested resource.
  • API: an Application Programming Interface, a defined set of commands one piece of software offers to another. When the report says fenced frames are created through the Protected Audience or Shared Storage APIs, it means websites use those documented commands to ask Chrome to create a fenced frame.
  • Protected Audience / FLEDGE: Chrome's system for showing targeted ads without letting advertisers track users across sites. FLEDGE was the earlier name of the same idea.
  • Renderer RCE: remote code execution in the renderer, meaning an attacker has found a way to run their own code inside that renderer process. Chrome's security model assumes this can happen, so the browser process must never blindly trust what a renderer says.
  • Bisect: a technique for finding which code change introduced a bug, by checking old versions one by one until the behaviour changes.
  • Commit: a recorded change to a code repository, with an author, a date and a message.
  • Regression: a bug that was introduced by a change which was supposed to improve things.
  • Site Isolation Bypass: the category the researcher chose for the vulnerability. Site Isolation is Chrome's defence that keeps different websites in separate processes; a bypass is a way around one of its guarantees.

Setup

The vulnerable code lives in three places:

  • Renderer: content/renderer/render_frame_impl.cc
  • Mojo definition: third_party/blink/public/mojom/frame/remote_frame.mojom
  • Browser: content/browser/renderer_host/render_frame_host_impl.cc

These are file paths inside the Chromium source code, the huge collection of files that Chrome is built from. The .cc files are C++ source code; the .mojom file describes the shape of the messages that can be sent over Mojo, a bit like a form template that says which fields a note may contain.

The issue was confirmed on Chrome 145.0.7632.117, which was the Stable version at the time of the report in February 2026. Stable means the normal release that ordinary users have.

To reproduce the bug you need a specially patched build of Chrome, a small local web server, and three files placed in the same directory: index.html, fenced.html and serve.py. The proof of concept is applied as m2_poc_patch.diff to a stable checkout. A checkout is a local copy of the source code; a diff is a file describing changes to apply to it; a proof of concept (PoC) is a small demonstration that proves the bug is real.

The patch simulates a compromised renderer by forging user_gesture=true for _unfencedTop navigations. A user gesture is a real action by the person using the browser, such as a click. Chrome normally requires one before letting a fenced frame navigate the whole tab, through a check called ValidateUnfencedTopNavigation(). The patch pretends the user clicked, so the navigation proceeds without any interaction. This matters because the report's threat model assumes a compromised renderer, which is a standard assumption in Chrome's security model: the browser must stay safe even if a renderer is fully under an attacker's control.

The renderer's real initiator_origin, meaning the fenced frame's origin, then flows through unchanged. The bug is that the browser forwards it to a function called NavigateFromFrameProxy() instead of replacing it with an opaque origin.

Finding it

The starting point is a function called RenderFrameHostImpl::OpenURL(). The name says it: this is the browser-side code that handles a request to open a URL. Inside a block of code that deals with is_unfenced_top_navigation, there is a commented-out TODO referencing crbug.com/40221940. A TODO is a note left by a programmer for work still to be done; crbug.com is Chromium's public bug tracker, and the number identifies a specific entry there.

The TODO was supposed to replace the renderer-supplied initiator_origin with an opaque origin before forwarding the navigation to NavigateFromFrameProxy(). The fix was never completed: the declaration // url::Origin initiator_origin; remains commented out, and params->initiator_origin, fully controlled by the renderer, is passed directly to NavigateFromFrameProxy().

Here is the vulnerable code, as quoted in the report:

C++
// In RenderFrameHostImpl::OpenURL(), inside the is_unfenced_top_navigation block:

// TODO(crbug.com/40221940): Null out the initiator origin, frame token, and
// site instance.
// We use an opaque `initiator_origin` in order to avoid leaking
// information from the fenced frame to its embedder. (The navigation will
// be treated as cross-origin unconditionally.) We don't need to provide a
// `source_site_instance`.
// url::Origin initiator_origin;    // <── FIX IS COMMENTED OUT

// ...

target_frame->frame_tree_node()->navigator().NavigateFromFrameProxy(
    ..., params->initiator_origin,  // <── RENDERER VALUE FORWARDED UNCHANGED
    ..., /*is_unfenced_top_navigation=*/true, ...);

Line by line, in plain words:

  • The first line is a comment saying where this code sits: inside the is_unfenced_top_navigation block of RenderFrameHostImpl::OpenURL(). Comments are notes for humans; Chrome ignores them when running.
  • The TODO(crbug.com/40221940) comment says the plan was to null out three things: the initiator origin, the frame token and the site instance. A frame token is a random identifier the browser uses to refer to a specific frame; a site instance is Chrome's internal record of which process is responsible for a site. Nulling them out means replacing them with empty, meaningless values.
  • The next lines explain why: an opaque initiator_origin avoids leaking information from the fenced frame to its embedder. The embedder is the page that contains the fenced frame. The comment also says the navigation will be treated as cross-origin unconditionally, meaning always, no matter what.
  • // url::Origin initiator_origin; is the line that would create that opaque origin. The two slashes at the start mean it is commented out, so it does nothing. The report marks it as the fix that is commented out.
  • // ... stands for code the report left out to keep the quote short.
  • The call to NavigateFromFrameProxy() is where the navigation is actually handed on. The argument params->initiator_origin is the origin value that came from the renderer, and the report marks it as forwarded unchanged. The /*is_unfenced_top_navigation=*/true argument tells the function this is a navigation leaving the fence.

The comment states the intent plainly: an opaque initiator_origin avoids leaking information from the fenced frame to its embedder, and the navigation is meant to be treated as cross-origin unconditionally. The code does neither, because the line that would create the opaque origin is commented out and the renderer's value is used instead.

Exploitation

Exploitation here means walking through exactly how the leaked origin travels from the fenced frame to the destination server. The report breaks it into seven steps.

Step 1: Call OpenURL from the fenced frame renderer

The fenced frame renderer calls RenderFrameImpl::OpenURL() with is_unfenced_top_navigation=true. In other words, the code running inside the sealed box asks Chrome to open a URL in the top-level tab, and flags the request as one that leaves the fence. This step is needed because it is the only way to start the chain: the request has to originate inside the fenced frame.

Step 2: Set the initiator origin

The renderer sets params->initiator_origin = info->url_request.RequestorOrigin(), the real fenced frame origin. The initiator origin is the origin of whoever started the navigation. A compromised renderer can set this to any origin its process hosts, meaning any website that happens to be running in that same process. This step matters because the value is chosen by the renderer, the part Chrome is supposed to distrust.

Step 3: Send the parameters over Mojo

params is sent to the browser via the LocalFrameHost::OpenURL Mojo IPC, using the OpenURLParams struct defined in remote_frame.mojom. A struct is a bundle of named fields, like a form with several boxes to fill in. Here the form carries the URL to open and the initiator origin. This step is the handover from the untrusted renderer to the trusted browser process.

Step 4: Browser-side validation

In RenderFrameHostImpl::OpenURL(), the browser validates the origin with VerifyInitiatorOrigin(). This passes, since the process does host the origin, and execution enters the _unfencedTop code path. The check is meant to stop a renderer from claiming to be some unrelated website. It only asks whether the claimed origin is one this process actually hosts, and here the answer is yes, so the check is satisfied. This step matters because it shows the existing safety check does not catch the problem.

Step 5: The commented-out fix has no effect

The TODO fix (url::Origin initiator_origin;) is commented out and does nothing. Because the line is disabled, no opaque origin is ever created, so there is nothing to substitute.

Step 6: The renderer value is forwarded

params->initiator_origin, the real fenced frame origin, is passed directly to NavigateFromFrameProxy(), which stores it in FrameNavigationEntry and forwards it in CommonNavigationParams. A FrameNavigationEntry is Chrome's internal record of one navigation; CommonNavigationParams is the bundle of settings passed along to the next stage. This step is where the leak becomes permanent for this navigation: the real origin is now recorded in the browser's own bookkeeping.

Step 7: Sec-Fetch-Site is computed from the leaked origin

The network service sets Sec-Fetch-Site on the outgoing request using the stored initiator origin. The network service is the part of Chrome that actually sends requests over the internet. If the fenced frame and the destination share the same origin, Chrome sets Sec-Fetch-Site: same-origin instead of the required cross-site. This is the moment the destination server can see the leak, because the header arrives with the request.

Reproducing it

The report gives these steps:

  1. git apply m2_poc_patch.diff in the stable checkout
  2. autoninja -C out/Default chrome -j8
  3. Place index.html, fenced.html and serve.py in the same directory, then start the HTTP server:
Bash
python3 serve.py
  1. Launch patched Chrome and observe:
Bash
out/Default/Chromium.app/Contents/MacOS/Chromium --enable-blink-features=FencedFramesDefaultMode --user-data-dir=/tmp/chrome-m2-test http://localhost:8080/index.html

After about two seconds, the server stdout shows:

Text
[*] /destination  Sec-Fetch-Site: same-origin

Here is what each step does and why it is there:

  1. git apply m2_poc_patch.diff applies the patch file to the local copy of the source. Git is the version control tool that tracks changes to code; apply takes a diff file and makes those changes. This is needed to simulate the compromised renderer.
  2. autoninja -C out/Default chrome -j8 builds Chrome from that modified source. autoninja is a build tool that runs the many compiler jobs needed; -C out/Default says which build directory to use; chrome names the target to build; -j8 allows eight jobs in parallel. You need a build because the patch changes Chrome itself.
  3. python3 serve.py starts a small web server written in Python on your own machine. It serves the test pages and prints what it receives, which is how the leak will be observed. The three files must sit in the same directory so the server can find them.
  4. The long command launches the freshly built Chrome. --enable-blink-features=FencedFramesDefaultMode switches on a testing feature; --user-data-dir=/tmp/chrome-m2-test gives this Chrome its own separate profile folder so it does not touch your normal browsing data; the final URL is the test page to open.

After about two seconds, the server prints the line shown above. The [*] is just a marker in the server's output, /destination is the path that was requested, and Sec-Fetch-Site: same-origin is the leaked header. The fenced frame's origin has leaked, and Privacy Sandbox isolation is violated.

The FencedFramesDefaultMode flag enables the FencedFrameConfig URL constructor for testing. A constructor is the command that creates an object in JavaScript. In production, fenced frames are created via the Protected Audience or Shared Storage APIs, so the flag is only a convenience for testing.

Root cause

The browser trusts a renderer-supplied initiator_origin for _unfencedTop navigations. The intended design, documented in the code comment itself, is to substitute an opaque origin so the navigation is unconditionally cross-origin. The substitution was written but left commented out, so the renderer's value is forwarded unchanged into NavigateFromFrameProxy() and from there into the network service's Sec-Fetch-Site computation.

The existing check, VerifyInitiatorOrigin(), does not stop this. It only confirms that the process hosts the origin being claimed, which is exactly the case here: the renderer claims the fenced frame's real origin, and the process does host it. The check is about plausibility, not about the fenced frame policy. A useful comparison: a bouncer who only checks that your name is on the guest list will let you in even if you are not the person the list was written for.

The report also bisects the change. The introducing commit is [redacted], authored by Garrett Tanzer on Mon Jun 13, 2022, with the message "Fenced Frames: _unfencedTop MPArch partial refactor" (CL https://chromium-review.googlesource.com/c/chromium/src/+/3615129, Cr-Commit-Position refs/heads/main@{#1013498}). A CL is a changelist, a proposed change under review; MPArch is the internal name of the architecture that lets Chrome keep multiple pages in one tab. The evidence:

  • M104 (104.0.5112.0): the "Null out the initiator origin" pattern is absent (grep count = 0)
  • M105 (105.0.5195.0): the pattern is present (grep count = 1)
  • Parent commit (a42fdef^): pattern absent, and the diff shows these lines being added
  • Commit a42fdef: pattern present, introducing the TODO and the commented-out url::Origin initiator_origin;

grep is a tool that searches text for a pattern and counts matches; a count of 0 means the text is not there, a count of 1 means it is. M104 and M105 are Chrome milestone numbers, the version series Chrome releases follow. The parent commit is the version of the code just before the change, written a42fdef^.

Earliest affected is Chrome M105 (stable 30 August 2022); latest confirmed is Chrome M145 (145.0.7632.117, current Stable). The vulnerable period is roughly 3.5 years. The Chromium code itself acknowledges the bug: crbug.com/40221940 appears three times in the same function, and the intended fix is documented there, it was simply never activated.

Impact

A compromised renderer inside a fenced frame, for example via renderer RCE in a third-party ad delivered through Protected Audience or FLEDGE, can set initiator_origin to its real origin. The browser forwards this to the destination server via Sec-Fetch-Site, revealing the fenced frame's content identity. In everyday terms: an ad shown inside the sealed box can tell the website it navigates to exactly which ad it was.

The Privacy Sandbox guarantee for fenced frames is that the embedding page and the fenced frame cannot identify each other. Leaking the fenced frame's origin to the destination of a _unfencedTop navigation breaks this by:

  • Allowing the destination server to identify what ad or content was displayed in the fenced frame
  • Enabling cross-context correlation that the Privacy Sandbox is specifically designed to prevent. Cross-context correlation means linking information from one situation to another to build a profile of a person.
  • Leaking via standard HTTP headers (Sec-Fetch-Site, and Referer if applicable) that are routinely logged

Exploitation requires a compromised renderer (renderer RCE), which is a standard assumption in Chrome's security model. The report's vulnerability type is Site Isolation Bypass, and it states the issue is not related to a crash.

Fix

The report attaches m2_fix.diff. The fix uncomments and activates the opaque origin, then uses it instead of params->initiator_origin in the NavigateFromFrameProxy() call:

Diff
-    // TODO(crbug.com/40221940): Null out the initiator origin, ...
-    // url::Origin initiator_origin;
+    url::Origin initiator_origin;

-        GetProcess()->GetDeprecatedID(), params->initiator_origin,
+        GetProcess()->GetDeprecatedID(), initiator_origin,

In a diff, lines starting with a minus sign are removed and lines starting with a plus sign are added. So the fix removes the commented-out TODO line and the commented-out declaration, and adds a real, active declaration url::Origin initiator_origin;. It then changes the call so that the newly created opaque origin is passed instead of the renderer's value. GetProcess()->GetDeprecatedID() is an existing argument that identifies the process; the word Deprecated means it is an older interface still in use, and the fix leaves it alone.

A default-constructed url::Origin is opaque, so the destination server will see Sec-Fetch-Site: cross-site, matching the Privacy Sandbox requirement. Normal, non-fenced-frame navigations are unaffected because they do not enter the is_unfenced_top_navigation code path. The researcher said a Gerrit CL would be uploaded and linked in a follow-up comment. Gerrit is the web tool Chromium uses to review proposed code changes.

Variants to test

  • Other navigation paths that carry a renderer-supplied initiator origin. Look for other call sites of NavigateFromFrameProxy() where the initiator origin comes from Mojo parameters rather than being constructed in the browser. A positive result is a destination server observing Sec-Fetch-Site or Referer values that reflect the source frame's real origin where the design requires an opaque or cross-site value.
  • Other fenced frame operations that leave the fence. Enumerate the operations gated by is_unfenced_top_navigation or similar flags and check whether each one substitutes an opaque origin, frame token and site instance as the TODO comment describes. A positive result is any of those values reaching the network service unchanged from the renderer.
  • Validation checks that only confirm process ownership. VerifyInitiatorOrigin() accepts any origin the process hosts. Test other browser-side checks with the same shape: if a compromised renderer can claim any origin it hosts, the check provides no isolation. A positive result is a policy-relevant value that passes validation and then influences a header, a permission decision or a storage partition. A storage partition is a separate storage area Chrome keeps for one site so another site cannot read it.
  • Header computation from stored navigation state. Trace how FrameNavigationEntry and CommonNavigationParams feed Sec-Fetch-Site, Sec-Fetch-Mode and Referer. A positive result is a header that reveals the initiator's identity in a context where the specification or the feature's design says it must not.
  • Commented-out security code. Grep for commented-out declarations and TODOs referencing security bugs in navigation and frame code. A positive result is a documented mitigation that is present in the source but never executed, as happened here.

Glossary

  • API: a defined set of commands one piece of software offers to another, so programs can work together without knowing each other's internals.
  • autoninja: a build tool that runs the many compiler jobs needed to turn source code into a program.
  • Bisect: finding which code change introduced a bug by checking older and newer versions until the behaviour changes.
  • Bounty: a payment made to someone who reports a security bug.
  • Browser process: the central, more powerful part of Chrome that coordinates the renderers and enforces security decisions.
  • Checkout: a local copy of a project's source code.
  • CL (changelist): a proposed change to code, submitted for review.
  • Commit: a recorded change to a code repository, with an author, date and message.
  • Constructor: in JavaScript, the command that creates an object.
  • Cross-context correlation: linking information from different situations to build a profile of a person.
  • CVE: a public catalogue number given to a known security flaw so everyone can refer to the same thing.
  • Diff: a file or display showing lines added to and removed from code; minus lines are removed, plus lines are added.
  • Embedder: the page that contains a frame, such as the page around a fenced frame.
  • Fenced frame: a Chrome feature that shows content in an isolated box that cannot identify, or be identified by, the page around it.
  • FLEDGE: the earlier name for Chrome's Protected Audience system for targeted ads without cross-site tracking.
  • Frame token: a random identifier the browser uses to refer to a specific frame.
  • Gerrit: the web tool Chromium uses to review proposed code changes.
  • Git: the version control tool that tracks changes to source code.
  • grep: a tool that searches text for a pattern and counts or lists matches.
  • HTTP header: a labelled piece of information sent alongside a web request or response, such as Sec-Fetch-Site or Referer.
  • Initiator origin: the origin of whoever started a navigation.
  • IPC: inter-process communication, one running program sending a message to another.
  • Mojo: Chrome's internal messaging system for communication between its processes.
  • MPArch: the internal Chromium architecture that lets one tab hold multiple pages.
  • Network service: the part of Chrome that sends requests over the internet.
  • Opaque origin: a deliberately meaningless origin that matches nothing, used to say a request comes from nowhere in particular.
  • Origin: the combination of protocol, host and port that identifies a website, such as https://example.com.
  • Privacy Sandbox: Chrome's set of features intended to support advertising and other uses without tracking people across the web.
  • Process: a running program with its own memory, kept separate from other programs.
  • Proof of concept (PoC): a small demonstration that proves a bug is real.
  • Protected Audience: Chrome's system for showing targeted ads without letting advertisers track users across sites.
  • Regression: a bug introduced by a change that was supposed to improve things.
  • Renderer: the part of Chrome that draws a web page and runs its JavaScript, kept in a separate, less powerful process.
  • Renderer RCE: remote code execution in a renderer, meaning an attacker can run their own code inside that process.
  • Sec-Fetch-Site: an HTTP header telling the server how the request relates to the page that made it, for example same-origin or cross-site.
  • Site instance: Chrome's internal record of which process is responsible for a site.
  • Site Isolation: Chrome's defence that keeps different websites in separate processes.
  • Site Isolation Bypass: a way around one of Site Isolation's guarantees.
  • Stable: the normal Chrome release that ordinary users have.
  • Storage partition: a separate storage area Chrome keeps for one site so another site cannot read it.
  • Struct: a bundle of named fields, like a form with several boxes to fill in.
  • TODO: a note left in code by a programmer for work still to be done.
  • User gesture: a real action by the person using the browser, such as a click.

More by Tianyi Hu

View all

6 more disclosed reports, best first.

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.