Skip to content
Access control Advisory Advanced CVE-2026-7959

Inappropriate implementation in Navigation (CVE-2026-7959)

The browser incorrectly calculated a sandboxed subframe's origin during BFCache restore or prerender activation, treating it as the non-sandboxed origin of its URL. A compromised sandboxed renderer could then receive and steal sensitive Navigation API state belonging to that origin, bypassing Site Isolation.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 41 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: During BFCache restore or Prerender activation, the browser incorrectly uses url::Origin::Create to determine a subframe's origin, ignoring sandbox flags. This causes sensitive Navigation API state from previous non-sandboxed history entries to be sent to isolated sandboxed renderer processes. A compromised sandboxed process can intercept this IPC to steal cross-origin data, bypassing Site Isolation.

Affected files:

  • content/browser/renderer_host/navigation_controller_impl.cc
  • content/browser/renderer_host/navigation_request.cc

Estimated timestamp from git blame: 2022-11-09

Summary

A potential vulnerability in Chrome's session history management could allow sensitive navigation_api_state from a non-sandboxed origin to be leaked to an isolated renderer process hosting a sandboxed version of the same origin. This leak occurs during Back-Forward Cache (BFCache) restore or Prerender activation and constitutes a Site Isolation bypass.

Note: The following steps and analysis are generated by an AI agent (Fortify LLM) and represent a potential vulnerability path derived from static code analysis. A working proof-of-concept has not yet been executed to verify this end-to-end.

Technical Details

When a page is restored from the BFCache or activated from a prerender, the browser calculates which history entries should be available to the window.navigation API in the renderer. This occurs in NavigationControllerImpl::GetNavigationApiHistoryEntryVectors.

During page activation, the NavigationRequest is only tied to the main frame. For subframes, the request argument passed to this function is nullptr (see navigation_request.cc:7111 and 7223).

When the request is null, the browser falls back to calculating the pending_origin based on the frame's current URL:

C++
// content/browser/renderer_host/navigation_controller_impl.cc:5451
url::Origin pending_origin = request
                                 ? request->GetOriginToCommit().value()
                                 : url::Origin::Create(node->current_url());

Using url::Origin::Create on a URL is a known anti-pattern (documented in url/origin.h) because it simply parses the URL and ignores frame-specific context like sandbox flags or CSP headers. If the subframe is sandboxed (e.g., via Content-Security-Policy: sandbox), its actual origin is opaque. However, pending_origin will incorrectly be set to the non-opaque origin of the URL.

Later in the same function, this incorrect pending_origin is used as a security filter when iterating through previous session history entries:

C++
if (!pending_origin.IsSameOriginWith(frame_entry_origin)) {
  break;
}

If the subframe previously committed a non-sandboxed entry at the same URL, its frame_entry_origin will match the incorrectly calculated pending_origin. The browser then serializes this previous entry's navigation_api_state (which may contain sensitive data) and sends it to the renderer via the SetNavigationApiHistoryEntriesForRestore Mojo IPC.

Because the kIsolateSandboxedIframes feature isolates sandboxed frames in their own dedicated processes, this sends cross-origin data across a security boundary into an untrusted, isolated process.

Potential Reproduction Steps

  1. Launch Chrome with sandbox process isolation enabled (kIsolateSandboxedIframes).
  2. An attacker page embeds an iframe to https://victim.com/app.
  3. The subframe loads normally (no sandbox) and sets sensitive state via the Navigation API: navigation.updateCurrentEntry({state: {token: 'SECRET'}}).
  4. The attacker page navigates the subframe to https://victim.com/ugc, which is served with a Content-Security-Policy: sandbox header.
  5. The subframe is now an opaque origin and is placed in a new, isolated renderer process.
  6. The attacker page navigates away, putting the previous page (including the sandboxed subframe) into the BFCache.
  7. The attacker triggers a back navigation, restoring the page from the BFCache.
  8. During activation, the browser computes the pending origin for the subframe as https://victim.com instead of its true opaque origin.
  9. The browser matches the previous /app history entry and sends its state (containing 'SECRET') to the isolated sandboxed process via the SetNavigationApiHistoryEntriesForRestore IPC.
  10. A compromised renderer in the sandboxed process can read the IPC payload before Blink discards it, successfully stealing the cross-origin data.

Suggested Fix

In NavigationControllerImpl::GetNavigationApiHistoryEntryVectors, use node->current_origin() instead of url::Origin::Create(node->current_url()) when the request is null.

C++
url::Origin pending_origin = request
                                 ? request->GetOriginToCommit().value()
                                 : node->current_origin();

node->current_origin() retrieves the replicated origin from the frame's state, which correctly reflects whether the origin is opaque due to sandboxing.

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


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. Please feel free to reach out to me if you have concerns or feedback.

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 code used url::Origin::Create on the frame's URL instead of the frame's replicated current origin, so sandbox flags were ignored when deciding which history entries to send.

Impact

A compromised sandboxed renderer could read cross-origin Navigation API state, bypassing Site Isolation; the report notes no working proof-of-concept has been executed.

What the attacker needed

Chrome with kIsolateSandboxedIframes enabled; attacker controls a page that embeds the victim; victim site uses Navigation API state; victim site serves a sandbox CSP page

The fix

The code should use the frame's replicated current origin instead of parsing the URL when the request is null.

How it was found

  1. Launch Chrome with sandbox process isolation enabled.
  2. An attacker page embeds an iframe to the victim site's app page.
  3. The subframe loads without sandbox and stores sensitive state via the Navigation API.
  4. The attacker navigates the subframe to a page served with a sandbox CSP header, making it an opaque origin in an isolated process.
  5. The attacker navigates away so the page goes into the BFCache, then triggers a back navigation to restore it.
  6. During activation the browser computes the wrong origin, matches the earlier history entry and sends its state to the isolated sandboxed process.

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 sandboxed iframe is meant to be treated as if it came from nowhere, so it should not be able to read data belonging to a real website. Here the browser made a mistake when restoring a page from its back/forward cache and gave the sandboxed frame data that belonged to the real site. If an attacker had already broken into that sandboxed frame's process, they could read that data.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.