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

Missing authorization in BFCache (CVE-2026-113265)

A browser-side handler for detaching a frame did not check whether the frame was in the back-forward cache, so a compromised renderer could send a detach message for a cached subframe. Because the cached subframe still referenced the live primary frame tree, the browser could resolve the victim page's navigation entry and delete a matching subframe history entry belonging to another origin.

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

Overview: A potential logic vulnerability allows a compromised renderer to delete arbitrary FrameNavigationEntry subtrees belonging to a cross-origin foreground page. By invoking LocalFrameHost::Detach on a BFCached subframe, the browser-side handler resolves the active tab's primary NavigationController via a stale FrameTree reference. An attacker can match and delete the victim's subframe history state using an attacker-controlled unique frame name.

Affected files:

  • content/browser/renderer_host/render_frame_host_impl.cc
  • content/browser/renderer_host/frame_tree_node.cc
  • content/browser/renderer_host/navigation_entry_impl.cc
  • content/browser/renderer_host/render_frame_host_impl_interface_binders.cc

Estimated timestamp from git blame: 2025-10-01

Root Cause Analysis

In RenderFrameHostImpl::Detach() (the browser-side handler for the blink::mojom::LocalFrameHost Mojo interface), there is no release-build validation to check if the frame's lifecycle state is LifecycleStateImpl::kInBackForwardCache ([content/browser/renderer_host/render_frame_host_impl.cc:6013]).

When Detach() is called on a BFCached subframe, the lifecycle state is updated to LifecycleStateImpl::kReadyToBeDeleted, and it initiates subtree pending deletion via StartPendingDeletionOnSubtree(PendingDeletionReason::kFrameDetach) ([content/browser/renderer_host/render_frame_host_impl.cc:6076]).

This eventually runs CleanupLastCommittedNavigationEntry() -> FrameTreeNode::MaybeRemoveFromLastCommittedEntry(). Inside MaybeRemoveFromLastCommittedEntry(), the browser resolves the current NavigationController via:

C++
NavigationEntryImpl* nav_entry = navigator().controller().GetLastCommittedEntry();

Where navigator() refers to frame_tree().navigator() ([content/browser/renderer_host/frame_tree_node.cc:320]).

Crucially, when a page enters the Back-Forward Cache (BFCache), its main RenderFrameHostImpl is stored in a StoredPage structure, but the subframe FrameTreeNodes' frame_tree_ reference (raw_ref<FrameTree>) is never modified or reassigned. It continues to point to the live primary FrameTree of the WebContents.

If the tab has navigated to a new cross-origin page (e.g., https://victim.com), the primary FrameTree's active navigation controller will return the victim's active NavigationEntryImpl. The browser then calls:

C++
nav_entry->RemoveEntryForFrame(this, /*only_if_different_position=*/false);

This triggers a Breadth-First Search (BFS) over the victim's navigation tree nodes, calling MatchesFrame() to locate a match ([content/browser/renderer_host/navigation_entry_impl.cc:1145]). Since the attacker can pre-configure the BFCached subframe's replication state unique_name to collide with the victim's target subframe name (e.g. default position-based names such as <!--framePath //<!--frame0-->-->), MatchesFrame() returns true and the victim's FrameNavigationEntry (and its entire descendant subtree) is unconditionally deleted from the parent node ([content/browser/renderer_host/navigation_entry_impl.cc:266]).

This represents a potential cross-origin browser-state integrity violation where a compromised renderer can mutate another origin's browser-process navigation state.

Suggested Exploitation Steps (Potential/Theoretical)

Note: Our tooling does not have the ability to execute code; the following are theoretical steps to trigger the potential vulnerability:

  1. A compromised renderer hosting https://evil.com invokes mojom::FrameHost::CreateChildFrame while active, specifying is_created_by_script = true and a frame_unique_name that matches a predictable, position-based name on a target victim site (e.g., <!--framePath //<!--frame0-->-->).
  2. The user or script navigates the top-level tab to https://victim.com. The evil.com page is placed into the Back-Forward Cache (kInBackForwardCache).
  3. The victim page loads and populates its own subframes, adding a target subframe with the matching unique name to its active NavigationEntryImpl.
  4. The compromised evil.com renderer process (ignoring the cache freeze) sends a LocalFrameHost::Detach() IPC message to its BFCached subframe.
  5. The browser dispatches the Detach() call, transitioning the subframe's state to kReadyToBeDeleted and executing MaybeRemoveFromLastCommittedEntry() via StartPendingDeletionOnSubtree.
  6. The browser incorrectly resolves the primary FrameTree's navigation entry (which is now victim.com's navigation entry), finds the name match, and permanently erases the victim's subframe FrameNavigationEntry subtree.

Suggested Fix

To prevent this, RenderFrameHostImpl::Detach() should check if the frame is currently in the Back-Forward Cache and reject the call or terminate the calling renderer (e.g., via ReceivedBadMessage) if an unexpected detach IPC is received from a cached frame:

C++
if (lifecycle_state() == LifecycleStateImpl::kInBackForwardCache) {
  bad_message::ReceivedBadMessage(GetProcess(), bad_message::RFH_DETACH_WHILE_BFCACHED);
  return;
}

Evaluated with Chrome root at commit: 57b021e1fdae94a215627d29aeb1ccf2eb5b3e91


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 the detach handler lacked a release-build check that the frame was in the back-forward cache, and cached subframes kept a reference to the live primary frame tree, so the removal was applied to the wrong page's navigation entry.

Impact

A compromised renderer could corrupt another origin's browser-process navigation state by deleting a subframe history entry, though the report presents this as theoretical and does not demonstrate it.

What the attacker needed

Compromised renderer process; victim visits attacker page then target site; predictable subframe name on target

The fix

The detach handler should reject the call and report a bad message when the frame is in the back-forward cache.

How it was found

  1. A compromised renderer creates a child frame with a script-chosen unique name matching a predictable name on the target site.
  2. The tab navigates to the victim site and the attacker page is placed in the back-forward cache.
  3. The victim page loads and creates a subframe with the matching unique name.
  4. The compromised renderer sends a detach message for its cached subframe.
  5. The browser processes the detach and looks up the current page's navigation entry.
  6. The name match is found and the victim's subframe navigation entry subtree is deleted.

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 you navigate away from a page, the browser may keep it in memory so the back button is instant; this is called the back-forward cache. The report says a malicious page kept in that cache could still send a message to the browser asking to remove one of its frames, and the browser would wrongly apply that removal to the new page you are now viewing. The result is that part of the new page's history record could be erased, which is a state integrity problem rather than theft of 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.