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

Incorrect authorization in Navigation (CVE-2026-84355)

The browser's Navigation API incorrectly shares PageState data from a CSP-sandboxed document with a same-site non-sandboxed document during history traversal because the origin check uses a URL-derived origin instead of the committed origin. An attacker could read navigation state, form data, and POST bodies from the sandboxed page.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The browser's Navigation API potentially discloses sensitive PageState data from a CSP-sandboxed document to a same-site, non-sandboxed document during history traversal. This occurs because the origin check relies on resolving the destination URL rather than checking the history entry's actual committed origin. An attacker could exploit this to leak navigation state and form data across a CSP sandbox security boundary.

Affected files:

  • content/browser/renderer_host/navigation_request.cc
  • content/browser/renderer_host/navigation_controller_impl.cc
  • third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
  • third_party/blink/renderer/core/loader/history_item.cc

Estimated timestamp from git blame: 2023-11-27

Summary

There is a potential cross-origin information leak in NavigationRequest::MaybeDispatchNavigateEventForCrossDocumentTraversal(). The browser incorrectly uses a URL-derived origin instead of the destination's actual committed origin when deciding whether to share a destination's PageState during a history navigation. This allows a non-sandboxed page to bypass CSP sandbox isolation and access the PageState of a same-site sandboxed page.

Technical Details

When a cross-document history navigation occurs, the browser dispatches a navigate event to the current document. This event provides the destination's state so that JavaScript can access it via NavigateEvent.destination.getState().

To prevent cross-origin data leaks, NavigationRequest::MaybeDispatchNavigateEventForCrossDocumentTraversal() performs a same-origin check:

C++
  url::Origin destination_origin = url::Origin::Resolve(
      common_params_->url,
      common_params_->initiator_origin.value_or(url::Origin()));
  if (!frame_tree_node_->current_origin().IsSameOriginWith(
          destination_origin)) {
    return;
  }

The flaw lies in using url::Origin::Resolve(). If the destination document was originally served with Content-Security-Policy: sandbox, it was committed with an opaque origin. However, url::Origin::Resolve() ignores this historical context. When passed a standard URL (e.g., https://example.com/sandboxed), it simply parses and returns the standard tuple origin (https://example.com).

As a result, if an attacker navigates from a sandboxed page to a same-site non-sandboxed page, and then triggers a history traversal back, the IsSameOriginWith check incorrectly evaluates to true.

The browser then sends the DispatchNavigateEventForCrossDocumentTraversal IPC to the attacker's renderer. This IPC contains commit_params_->page_state, which holds the serialized ExplodedFrameState. This state includes:

  1. navigation_api_state (exposed directly to untrusted JS).
  2. document_state (form field data).
  3. http_body (POST request bodies).

Impact

A same-site attacker can register a navigate event listener and read the victim's navigation_api_state using e.destination.getState(). Furthermore, if the attacker has already compromised their own renderer process, they can intercept the IPC and parse the raw PageState blob to extract highly sensitive form data and POST bodies from the sandboxed document.

Suggested Reproduction Steps

Note: These are potential steps to trigger the vulnerability, as our tooling agent cannot execute code to verify the exploit end-to-end.

  1. Host a victim page at https://example.com/sandboxed that serves the header Content-Security-Policy: sandbox allow-scripts. This forces the page into an opaque origin.

  2. In the victim page, store sensitive data in the Navigation API: navigation.updateCurrentEntry({state: {secret: 'LEAKED_DATA'}}).

  3. Navigate the victim page to an attacker-controlled same-site page: https://example.com/attacker (which lacks the sandbox header).

  4. In the attacker page, register an event listener:

    JavaScript
    navigation.addEventListener('navigate', (e) => {
      if (e.destination.url.includes('sandboxed')) {
         console.log('Leaked State:', e.destination.getState());
      }
    });
    
  5. Trigger a back navigation (e.g., via history.back()).

  6. Observe that the navigate event fires in the attacker page, and e.destination.getState() reveals the sensitive data from the sandboxed page.

Suggested Fix

Instead of deriving the destination origin using url::Origin::Resolve(), MaybeDispatchNavigateEventForCrossDocumentTraversal should use the committed_origin() of the destination FrameNavigationEntry.

The FrameNavigationEntry accurately records whether the document was committed with an opaque origin (e.g., due to a sandbox). Other parts of the navigation stack (like NavigationControllerImpl::PopulateSingleNavigationApiHistoryEntryVector) already correctly rely on frame_entry->committed_origin() for similar security boundaries.

Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955


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

The code used url::Origin::Resolve() to derive the destination origin from the URL, ignoring that the destination document was actually committed with an opaque origin due to a CSP sandbox.

Impact

A same-site attacker could read the victim's navigation state via JavaScript, and if the attacker has already compromised their renderer process, they could extract form data and POST bodies from the sandboxed document.

What the attacker needed

Victim page with CSP sandbox; attacker controls same-site page; victim navigates to attacker page; victim triggers back navigation

The fix

The code should use the committed_origin() of the destination FrameNavigationEntry instead of url::Origin::Resolve() to determine the destination origin.

How it was found

  1. Host a victim page that serves a CSP sandbox header, forcing an opaque origin.
  2. In the victim page, store sensitive data in the Navigation API state.
  3. Navigate the victim page to an attacker-controlled same-site page without the sandbox header.
  4. In the attacker page, register a navigate event listener.
  5. Trigger a back navigation.
  6. Observe that the navigate event fires and reveals the sensitive data.

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 web page is supposed to be isolated so other pages cannot read its data. This report found that a browser feature for tracking navigation history could leak that data to a related page on the same site. An attacker who controls a page on the same site could see private information from the sandboxed page.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

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.